Struct ruspiro_channel::mpmc::AsyncReceiver[][src]

pub struct AsyncReceiver<T: 'static> { /* fields omitted */ }

The receiving part of the channel. This can be used to retreive data that has been send from the sending part of it

Trait Implementations

impl<T: 'static> Clone for AsyncReceiver<T>[src]

Enable cloning the Sender so it can be used at different cores, filling up the same queue

impl<T: 'static> Stream for AsyncReceiver<T>[src]

The asyncrounous channel receiving part acts like a stream. When waiting for new data to arrive call next().await on the receiver.

type Item = T

Values yielded by the stream.

Auto Trait Implementations

impl<T> Send for AsyncReceiver<T>

impl<T> Sync for AsyncReceiver<T>

impl<T> Unpin for AsyncReceiver<T>

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized