Struct netidx::utils::Batched[][src]

#[must_use = "streams do nothing unless polled"]pub struct Batched<S> where
    S: Stream, 
{ /* fields omitted */ }

Implementations

impl<S> Batched<S> where
    S: Stream, 
[src]

pub fn new(stream: S, max: usize) -> Batched<S>[src]

pub fn inner(&self) -> &S[src]

pub fn inner_mut(&mut self) -> &mut S[src]

pub fn into_inner(self) -> S[src]

Trait Implementations

impl<S> FusedStream for Batched<S> where
    S: Stream, 
[src]

impl<Item, S> Sink<Item> for Batched<S> where
    S: Stream + Sink<Item>, 
[src]

type Error = <S as Sink<Item>>::Error

The type of value produced by the sink when an error occurs.

impl<S> Stream for Batched<S> where
    S: Stream, 
[src]

type Item = BatchItem<<S as Stream>::Item>

Values yielded by the stream.

Auto Trait Implementations

impl<S> RefUnwindSafe for Batched<S> where
    S: RefUnwindSafe

impl<S> Send for Batched<S> where
    S: Send

impl<S> Sync for Batched<S> where
    S: Sync

impl<S> Unpin for Batched<S> where
    S: Unpin

impl<S> UnwindSafe for Batched<S> where
    S: UnwindSafe

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,