pub struct Mailbox { /* fields omitted */ }
Expand description
A mailbox for encoded messages
Message type information can’t be exposed at this stage because
they need to either be typed in the Relay
or in the worker’s
Context
.
Return the sender of the mailbox.
pub async fn next(&mut self) -> Option<RelayMessage>
Get the next message from the mailbox
pub async fn requeue(&self, msg: RelayMessage)
If a message wasn’t expected, requeue it
Formats the value using the given formatter. 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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the current Span
, returning an
Instrumented
wrapper. 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.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,