Trait bastion::dispatcher::Recipient [−][src]
pub trait Recipient {
fn next(&self) -> Option<ChildRef>;
fn all(&self) -> Vec<ChildRef>ⓘ;
fn register(&self, actor: ChildRef);
fn remove(&self, actor: &ChildRef);
}
Expand description
A Recipient
is responsible for maintaining it’s list
of recipients, and deciding which child gets to receive which message.
Required methods
Provide this function to declare which recipient will receive the next message
Return all recipients that will receive a broadcast message