Struct lunatic::LinkMailbox[][src]

pub struct LinkMailbox<T: Serialize + DeserializeOwned> { /* fields omitted */ }
Expand description

Mailbox for linked processes.

When a process is linked to others it will also receive messages if one of the others dies.

Implementations

Gets next message from process’ mailbox.

If the mailbox is empty, this function will block until a new message arrives.

Same as [receive], but only waits for the duration of timeout for the message.

Gets a message with a specific tag from the mailbox.

If the mailbox is empty, this function will block until a new message arrives.

Same as [tag_receive], but only waits for the duration of timeout for the tagged message.

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.

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.