/// Passes the notification from the actor to everyone that registered in the same
/// groups as the caller.
Passes the notification from the actor to everyone that registered in the same
groups as the caller.
Passes the notification from the actor to everyone that registered in the same groups as the caller .
pub(crate) fn notify(
        &self,
        from_actor: &ChildRef,
        dispatchers: &Vec<DispatcherType>,
        notification_type: NotificationType,
    ) {
        self.dispatchers
            .iter()
            .filter(|pair| dispatchers.contains(&pair.key()))
            .for_each(|pair| {
                let dispatcher = pair.value();
                dispatcher.notify(from_actor, notification_type.clone())
            })
    }
pub ( crate ) fn notify ( & self , from_actor : & ChildRef , dispatchers : & Vec < DispatcherType > , notification_type : NotificationType , ) { self . dispatchers . iter ( ) . filter ( | pair | dispatchers . contains ( & pair . key ( ) ) ) . for_each ( | pair | { let dispatcher = pair . value ( ) ; dispatcher . notify ( from_actor , notification_type . clone ( ) ) } ) }
Passes the notification from the actor to everyone that registered in the same
groups as the caller.
Passes the notification from the actor to everyone that registered in the same groups as the caller .
&self
from_actor
&ChildRef
dispatchers
&Vec<DispatcherType>
notification_type
NotificationType