Skip to main content

List

Trait List 

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

List is returned by Service to stream entries for a list operation.

Required Methods§

Source

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

Fetch the next Entry.

Ok(Some(entry)) means one entry is available. Ok(None) means the list operation has completed. Further calls must keep returning Ok(None).

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§

Source§

impl List for ()

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<S> List for FlatLister<S>
where S: Service,