[][src]Struct futures_ext::WeightLimitedBufferedStream

pub struct WeightLimitedBufferedStream<S, I, E> { /* fields omitted */ }

Like stream::Buffered, but can also limit number of futures in a buffer by "weight".

Implementations

impl<S, I, E> WeightLimitedBufferedStream<S, I, E> where
    S: Stream
[src]

pub fn new(params: BufferedParams, stream: S) -> Self[src]

Create a new instance that will be configured using the params provided

Trait Implementations

impl<S, Fut, I: 'static, E: 'static> Stream for WeightLimitedBufferedStream<S, I, E> where
    S: Stream<Item = (Fut, u64), Error = E>,
    Fut: Future<Item = I, Error = E> + Send + 'static, 
[src]

type Item = I

The type of item this stream will yield on success.

type Error = E

The type of error this stream may generate.

Auto Trait Implementations

impl<S, I, E> !RefUnwindSafe for WeightLimitedBufferedStream<S, I, E>

impl<S, I, E> Send for WeightLimitedBufferedStream<S, I, E> where
    I: Send,
    S: Send

impl<S, I, E> !Sync for WeightLimitedBufferedStream<S, I, E>

impl<S, I, E> Unpin for WeightLimitedBufferedStream<S, I, E> where
    I: Unpin,
    S: Unpin

impl<S, I, E> !UnwindSafe for WeightLimitedBufferedStream<S, I, E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StreamExt for T where
    T: Stream
[src]

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<T> StreamLayeredExt for T where
    T: Stream<Item = Bytes>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.