[−][src]Struct futures_intrusive::channel::shared::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<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]
fn is_terminated(&self) -> bool
[src]
impl<MutexType, T> Future for StateReceiveFuture<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<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]
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>,