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
fn notify(
&self,
from_child: &ChildRef,
entries: &DispatcherMap,
notification_type: NotificationType
)
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>
)
fn broadcast_message(
&self,
entries: &DispatcherMap,
message: &Arc<SignedMessage>
)
Broadcasts the message to actors in according to the implemented behaviour.