[][src]Struct futures_intrusive::channel::StateReceiveFuture

#[must_use = "futures do nothing unless polled"]
pub struct StateReceiveFuture<'a, MutexType, T> where
    T: Clone
{ /* fields omitted */ }

A Future that is returned by the receive function on a state broadcast channel. The future gets resolved with Some((state_id, state)) when a value could be received from the channel.

state represents the new state which had been retrieved from the channel.

state_id is the StateId which can be passed as a parameter to receive() in order to fetch the next state from the channel.

If the channels gets closed and no items are still enqueued inside the channel, the future will resolve to None.

Trait Implementations

impl<'a, MutexType, T: Clone> Debug for StateReceiveFuture<'a, MutexType, T>[src]

impl<'a, MutexType, T: Clone> Drop for StateReceiveFuture<'a, MutexType, T>[src]

impl<'a, MutexType, T: Clone> FusedFuture for StateReceiveFuture<'a, MutexType, T>[src]

impl<'a, MutexType, T: Clone> Future for StateReceiveFuture<'a, MutexType, T>[src]

type Output = Option<(StateId, T)>

The type of value produced on completion.

impl<'a, MutexType: Sync, T: Clone + Send> Send for StateReceiveFuture<'a, MutexType, T>[src]

Auto Trait Implementations

impl<'a, MutexType, T> !RefUnwindSafe for StateReceiveFuture<'a, MutexType, T>

impl<'a, MutexType, T> !Sync for StateReceiveFuture<'a, MutexType, T>

impl<'a, MutexType, T> !Unpin for StateReceiveFuture<'a, MutexType, T>

impl<'a, MutexType, T> !UnwindSafe for StateReceiveFuture<'a, MutexType, T>

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, 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.