[−][src]Struct futures_intrusive::channel::StateReceiveFuture
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]
fn is_terminated(&self) -> bool
[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.
fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<(StateId, T)>>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,