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

#[must_use = "futures do nothing unless polled"]pub struct StateReceiveFuture<MutexType, T> { /* 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<MutexType, T> Debug for StateReceiveFuture<MutexType, T>[src]

impl<MutexType, T> Drop for StateReceiveFuture<MutexType, T>[src]

impl<MutexType, T> FusedFuture for StateReceiveFuture<MutexType, T>[src]

impl<MutexType, T> Future for StateReceiveFuture<MutexType, T>[src]

type Output = Option<(StateId, T)>

The type of value produced on completion.

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

Auto Trait Implementations

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

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

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

impl<MutexType, T> !UnwindSafe for StateReceiveFuture<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.