List

Trait List 

pub trait List:
    Unpin
    + Send
    + Sync {
    // Required method
    fn next(
        &mut self,
    ) -> impl Future<Output = Result<Option<Entry>, Error>> + MaybeSend;
}
Expand description

Page trait is used by [raw::Accessor] to implement list operation.

Required Methods§

fn next( &mut self, ) -> impl Future<Output = Result<Option<Entry>, Error>> + MaybeSend

Fetch a new page of Entry

Ok(None) means all pages have been returned. Any following call to next will always get the same result.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl List for ()

§

async fn next(&mut self) -> Result<Option<Entry>, Error>

§

impl<P> List for Option<P>
where P: List,

§

async fn next(&mut self) -> Result<Option<Entry>, Error>

§

impl<T> List for Box<T>
where T: ListDyn + ?Sized,

§

async fn next(&mut self) -> Result<Option<Entry>, Error>

Implementors§

Source§

impl List for MockLister

§

impl<A, L> List for FlatLister<A, L>
where A: Access<Lister = L>, L: List,

§

impl<L> List for PageLister<L>
where L: PageList,

§

impl<L> List for PrefixLister<L>
where L: List,

§

impl<ONE, TWO> List for TwoWays<ONE, TWO>
where ONE: List, TWO: List,

§

impl<ONE, TWO, THREE> List for ThreeWays<ONE, TWO, THREE>
where ONE: List, TWO: List, THREE: List,

§

impl<ONE, TWO, THREE, FOUR> List for FourWays<ONE, TWO, THREE, FOUR>
where ONE: List, TWO: List, THREE: List, FOUR: List,

§

impl<P> List for HierarchyLister<P>
where P: List,