pub fn try_send(&self, message: T) -> Result<(), TrySendError<T>> {
        match self {
            Sender::Bounded(tx) => tx.try_send(message),
            Sender::Unbounded(tx) => tx
                .send(message)
                .map_err(|SendError(t)| TrySendError::Closed(t)),
        }
    }
/// Try to send a message over the channel, returning an error if the channel is full or closed.
Try to send a message over the channel, returning an error if the channel is full or closed.
Try to send a message over the channel returning an error if the channel is full or closed .
pub fn try_send(&self, message: T) -> Result<(), TrySendError<T>> {
        match self {
            Sender::Bounded(tx) => tx.try_send(message),
            Sender::Unbounded(tx) => tx
                .send(message)
                .map_err(|SendError(t)| TrySendError::Closed(t)),
        }
    }
pub fn try_send ( & self , message : T ) -> Result < ( ) , TrySendError < T > > { match self { Sender :: Bounded ( tx ) => tx . try_send ( message ) , Sender :: Unbounded ( tx ) => tx . send ( message ) . map_err ( | SendError ( t ) | TrySendError :: Closed ( t ) ) , } }
Try to send a message over the channel, returning an error if the channel is full or closed.
Try to send a message over the channel returning an error if the channel is full or closed .
&self
message
T