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

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

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

Required methods

fn notify(
    &self,
    from_child: &ChildRef,
    entries: &DispatcherMap,
    notification_type: NotificationType
)

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

fn broadcast_message(
    &self,
    entries: &DispatcherMap,
    message: &Arc<SignedMessage>
)

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

Loading content...

Implementors

impl DispatcherHandler for DefaultDispatcherHandler[src]

Loading content...