[−][src]Trait sealrs::actors::mailbox::Mailbox
Required methods
fn set_planned(&mut self, planned: bool)
Set scheduled marker. This marker indicates than messages from this mailbox was planned for execution by dispatcher
fn is_planned(&self) -> bool
Return scheduled marker
fn enqueue(&mut self, envelope: Envelope)
Enqueue new message to the mailbox
fn dequeue(&mut self) -> Envelope
Dequeue new message to the mailbox
fn clean_up(&mut self, sender: ActorRef, dead_letters: ActorRef)
Clean mailbox, This function receive a reference to the owner actor, and reference to DeadLetter for dropping messages.
fn has_messages(&self) -> bool
Checks messages existing in the mailbox
Implementors
impl Mailbox for DeadLetters
[src]
fn set_planned(&mut self, _planned: bool)
[src]
He is always planned. This is needed for prevent scheduling of the mailbox
fn is_planned(&self) -> bool
[src]
I say again, he is always planned!
fn enqueue(&mut self, envelope: Envelope)
[src]
Constructs a beautiful message and print it
fn dequeue(&mut self) -> Envelope
[src]
Oops! This mailbox does not contains the queue
fn has_messages(&self) -> bool
[src]
He never store messages
fn clean_up(&mut self, _sender: ActorRef, _dead_letters: ActorRef)
[src]
Do nothing
impl Mailbox for UnboundMailbox
[src]
fn set_planned(&mut self, planned: bool)
[src]
fn is_planned(&self) -> bool
[src]
fn enqueue(&mut self, envelope: Envelope)
[src]
fn dequeue(&mut self) -> Envelope
[src]
fn has_messages(&self) -> bool
[src]
fn clean_up(&mut self, sender: ActorRef, dead_letters: ActorRef)
[src]
Drops all messages to the DeadLetter