logo

Trait bastion::dispatcher::Recipient[][src]

pub trait Recipient {
    fn next(&self) -> Option<ChildRef>;
fn all(&self) -> Vec<ChildRef>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
;
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

Add this actor to your list of recipients

Remove this actor from your list of recipients

Implementors