pub trait Recipient {
// Required methods
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.