pub struct ReceiveGuard<'a, M, P>where
M: Send,
P: PartialOrd + Ord,{ /* private fields */ }
Expand description
Wraps a Message, when dropped and the queue is empty it sends a final ‘Drained’ message
to notify that there is no further work in progress.
Returns a reference to the contained message.
Takes the Message out of a ReceiveGuard, drop the guard (and by that, may send
the ‘Drained’ message).
Formats the value using the given formatter.
Read more
Executes the destructor for this type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.