pub fn do_send<M>(&self, msg: M) -> Result<(), SendError<M>>
    where
        A: Handler<M>,
        <A as Actor>::Context: ToEnvelope<A, M>,
        M::Result: Send,
        M: Message + Send,
    {
        if self.inc_num_messages().is_none() {
            Err(SendError::Closed(msg))
        } else {
            // If inc_num_messages returned Some(park_self), then the mailbox is still active.
            // We ignore the boolean (indicating to park and wait) in the Some, and queue the
            // message regardless.
            let env = <A::Context as ToEnvelope<A, M>>::pack(msg, None);
            self.queue_push_and_signal(env);
            Ok(())
        }
    }
/// Send a message on this `Sender<A>` without blocking.
///
/// This function does not park current task.
Send a message on this `Sender` without blocking.
This function does not park current task.
Send a message on this ` Sender ` without blocking . This function does not park current task .
pub fn do_send<M>(&self, msg: M) -> Result<(), SendError<M>>
    where
        A: Handler<M>,
        <A as Actor>::Context: ToEnvelope<A, M>,
        M::Result: Send,
        M: Message + Send,
    {
        if self.inc_num_messages().is_none() {
            Err(SendError::Closed(msg))
        } else {
            // If inc_num_messages returned Some(park_self), then the mailbox is still active.
            // We ignore the boolean (indicating to park and wait) in the Some, and queue the
            // message regardless.
            let env = <A::Context as ToEnvelope<A, M>>::pack(msg, None);
            self.queue_push_and_signal(env);
            Ok(())
        }
    }
pub fn do_send < M > ( & self , msg : M ) -> Result < ( ) , SendError < M > > where A : Handler < M > , < A as Actor > :: Context : ToEnvelope < A , M > , M :: Result : Send , M : Message + Send , { if self . inc_num_messages ( ) . is_none ( ) { Err ( SendError :: Closed ( msg ) ) } else { // If inc_num_messages returned Some(park_self), then the mailbox is still active. // We ignore the boolean (indicating to park and wait) in the Some, and queue the // message regardless. let env = < A :: Context as ToEnvelope < A , M > > :: pack ( msg , None ) ; self . queue_push_and_signal ( env ) ; Ok ( ( ) ) } }
Send a message on this `Sender<A>` without blocking.
Send a message on this ` Sender<A > ` without blocking .
&self
msg
M
&self
msg
M