[−][src]Trait bastion::dispatcher::DispatcherHandler
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
)
&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>
)
&self,
entries: &DispatcherMap,
message: &Arc<SignedMessage>
)
Broadcasts the message to actors in according to the implemented behaviour.
Implementors
impl DispatcherHandler for DefaultDispatcherHandler
[src]
fn notify(
&self,
_from_child: &ChildRef,
_entries: &DispatcherMap,
_notification_type: NotificationType
)
[src]
&self,
_from_child: &ChildRef,
_entries: &DispatcherMap,
_notification_type: NotificationType
)
fn broadcast_message(
&self,
_entries: &DispatcherMap,
_message: &Arc<SignedMessage>
)
[src]
&self,
_entries: &DispatcherMap,
_message: &Arc<SignedMessage>
)