[][src]Struct multiqueue2::BroadcastFutReceiver

pub struct BroadcastFutReceiver<T: Clone> { /* fields omitted */ }

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

Implementations

impl<T: Clone> BroadcastFutReceiver<T>[src]

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

Equivalent to BroadcastReceiver::try_recv

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

Equivalent to BroadcastReceiver::recv

pub fn add_stream(&self) -> BroadcastFutReceiver<T>[src]

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

Identical to BroadcastReceiver::unsubscribe

impl<T: Clone + Sync> BroadcastFutReceiver<T>[src]

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

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

Trait Implementations

impl<T: Clone> Clone for BroadcastFutReceiver<T>[src]

impl<T: Clone, '_> Stream for &'_ BroadcastFutReceiver<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: Clone> Stream for BroadcastFutReceiver<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

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.