fn notify<M>(&mut self, msg: M)
    where
        A: Handler<M>,
        M: Message + 'static,
    {
        if self.state() == ActorState::Stopped {
            error!("Context::notify called for stopped actor.");
        } else {
            self.spawn(ActorMessageItem::new(msg));
        }
    }
/// Sends the message `msg` to self. This bypasses the mailbox capacity, and
/// will always queue the message. If the actor is in the `stopped` state, an
/// error will be raised.
Sends the message `msg` to self. This bypasses the mailbox capacity, and
will always queue the message. If the actor is in the `stopped` state, an
error will be raised.
Sends the message ` msg ` to self . This bypasses the mailbox capacity and will always queue the message . If the actor is in the ` stopped ` state an error will be raised .
fn notify<M>(&mut self, msg: M)
    where
        A: Handler<M>,
        M: Message + 'static,
    {
        if self.state() == ActorState::Stopped {
            error!("Context::notify called for stopped actor.");
        } else {
            self.spawn(ActorMessageItem::new(msg));
        }
    }
fn notify < M > ( & mut self , msg : M ) where A : Handler < M > , M : Message + ' static , { if self . state ( ) == ActorState :: Stopped { error ! ( " " ) ; } else { self . spawn ( ActorMessageItem :: new ( msg ) ) ; } }
Sends the message `msg` to self.
Sends the message ` msg ` to self .
&mut self
msg
M
&mut self
msg
M