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.