[][src]Struct multiqueue2::MPMCFutReceiver

pub struct MPMCFutReceiver<T> { /* fields omitted */ }

This is the futures-compatible version of MPMCReceiver It implements Stream

Implementations

impl<T> MPMCFutReceiver<T>[src]

pub fn try_recv(&self) -> Result<T, TryRecvError>[src]

Equivalent to MPMCReceiver::try_recv

pub fn recv(&self) -> Result<T, RecvError>[src]

Equivalent to MPMCReceiver::recv

pub fn unsubscribe(self) -> bool[src]

Identical to MPMCReceiver::unsubscribe

pub fn into_single<R, F: FnMut(&T) -> R>(
    self,
    op: F
) -> Result<MPMCFutUniReceiver<R, F, T>, (F, MPMCFutReceiver<T>)>
[src]

Analog of MPMCReceiver::into_single Since the FutUniReceiver acts more like an iterator, this takes the operation to be applied to each value

Trait Implementations

impl<T> Clone for MPMCFutReceiver<T>[src]

impl<T, '_> Stream for &'_ MPMCFutReceiver<T>[src]

type Item = T

The type of item this stream will yield on success.

type Error = ()

The type of error this stream may generate.

impl<T> Stream for MPMCFutReceiver<T>[src]

type Item = T

The type of item this stream will yield on success.

type Error = ()

The type of error this stream may generate.

Auto Trait Implementations

impl<T> !RefUnwindSafe for MPMCFutReceiver<T>[src]

impl<T> Send for MPMCFutReceiver<T> where
    T: Send
[src]

impl<T> !Sync for MPMCFutReceiver<T>[src]

impl<T> Unpin for MPMCFutReceiver<T>[src]

impl<T> !UnwindSafe for MPMCFutReceiver<T>[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.