logo

Trait bastion::dispatcher::DispatcherHandler[][src]

pub trait DispatcherHandler {
    fn notify(
        &self,
        from_child: &ChildRef,
        entries: &DispatcherMap,
        notification_type: NotificationType
    );
fn broadcast_message(
        &self,
        entries: &DispatcherMap,
        message: &Arc<SignedMessage>
    ); }
Expand description

Generic trait which any custom dispatcher handler must implement for the further usage by the Dispatcher instances.

Required methods

Sends the notification of the certain type to each actor in group.

Broadcasts the message to actors in according to the implemented behaviour.

Implementors