[][src]Struct multiqueue2::MPMCFutUniReceiver

pub struct MPMCFutUniReceiver<R, F: FnMut(&T) -> R, T> { /* fields omitted */ }

This is the futures-compatible version of MPMCUniReceiver It implements Stream and behaves like the iterator would. To use a different function must transform itself into a different UniRecveiver use transform_operation

Methods

impl<R, F: FnMut(&T) -> R, T> MPMCFutUniReceiver<R, F, T>[src]

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

Equivalent to MPMCReceiver::try_recv using the held operation

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

Equivalent to MPMCReceiver::recv using the held operation

pub fn add_stream_with<RQ, FQ: FnMut(&T) -> RQ>(
    &self,
    op: FQ
) -> MPMCFutUniReceiver<RQ, FQ, T>
[src]

Adds a stream with the specified method

pub fn transform_operation<RQ, FQ: FnMut(&T) -> RQ>(
    self,
    op: FQ
) -> MPMCFutUniReceiver<RQ, FQ, T>
[src]

Returns a new receiver on the same stream using a different method

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

Identical to MPMCReceiver::unsubscribe

pub fn into_multi(self) -> MPMCFutReceiver<T>[src]

Transforms this back into MPMCFutReceiver, returning the new receiver

Trait Implementations

impl<R, F: FnMut(&T) -> R, T> Stream for MPMCFutUniReceiver<R, F, T>[src]

type Item = R

The type of item this stream will yield on success.

type Error = ()

The type of error this stream may generate.

Auto Trait Implementations

impl<R, F, T> Send for MPMCFutUniReceiver<R, F, T>

impl<R, F, T> Unpin for MPMCFutUniReceiver<R, F, T> where
    F: Unpin

impl<R, F, T> !Sync for MPMCFutUniReceiver<R, F, T>

impl<R, F, T> !UnwindSafe for MPMCFutUniReceiver<R, F, T>

impl<R, F, T> !RefUnwindSafe for MPMCFutUniReceiver<R, F, T>

Blanket Implementations

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

impl<T> From<T> for T[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.

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

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

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