[][src]Trait weighted_select::IncompleteSelect

pub trait IncompleteSelect: Sized {
    type Item;
    type Error;
    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>); }

Associated Types

type Item

type Error

Loading content...

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>)

Loading content...

Implementors

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

type Item = S::Item

type Error = S::Error

Loading content...