IncompleteSelect

Trait IncompleteSelect 

Source
pub trait IncompleteSelect: Sized {
    type Item;
    type Error;

    // Required methods
    fn append<NS>(self, stream: NS, weight: u32) -> SelectPart<NS, Self>
       where NS: Stream<Item = Self::Item, Error = Self::Error>;
    fn build(self) -> Select<Self>;
    fn poll_chain(
        &mut self,
        cursor: u64,
    ) -> (u64, Poll<Option<Self::Item>, Self::Error>);
}

Required Associated Types§

Required Methods§

Source

fn append<NS>(self, stream: NS, weight: u32) -> SelectPart<NS, Self>
where NS: Stream<Item = Self::Item, Error = Self::Error>,

Source

fn build(self) -> Select<Self>

Source

fn poll_chain( &mut self, cursor: u64, ) -> (u64, Poll<Option<Self::Item>, Self::Error>)

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.

Implementors§

Source§

impl<S, N> IncompleteSelect for SelectPart<S, N>
where S: Stream, N: IncompleteSelect<Item = S::Item, Error = S::Error>,

Source§

type Item = <S as Stream>::Item

Source§

type Error = <S as Stream>::Error