Struct ockam_node::Mailbox[][src]

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.

Implementations

Create a new mailbox

Return the sender of the mailbox.

Get the next message from the mailbox

If a message wasn’t expected, requeue it

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

Performs the conversion.

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.