pub struct Message<'bus, T> where
T: 'static + Send, { /* fields omitted */ }
Expand description
A message on the bus.
Messages can be read, and then ignored, or consumed. A message handle must not outlive the bus
it was pushed to, hence the lifetime 'bus
.
impl<'bus, T> Message<'bus, T> where
T: 'static + Send,
Consumes the message and returns its inner data.
This removes the message from the bus, so subsequent calls to receive_all
and wait_for
will not yield this message.
The resulting type after dereferencing.
Executes the destructor for this type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.