pub fn send(&self, item: T) -> Result<(), SendError<T>> {
        let shared = match self.shared.upgrade() {
            Some(shared) => shared,
            None => return Err(SendError(item)), // receiver was dropped
        };
        let mut shared = shared.borrow_mut();

        shared.buffer.push_back(item);
        shared.blocked_recv.wake();
        Ok(())
    }
/// Sends the provided message along this channel.
Sends the provided message along this channel.
Sends the provided message along this channel .
pub fn send(&self, item: T) -> Result<(), SendError<T>> {
        let shared = match self.shared.upgrade() {
            Some(shared) => shared,
            None => return Err(SendError(item)), // receiver was dropped
        };
        let mut shared = shared.borrow_mut();
        shared.buffer.push_back(item);
        shared.blocked_recv.wake();
        Ok(())
    }
pub fn send ( & self , item : T ) -> Result < ( ) , SendError < T > > { let shared = match self . shared . upgrade ( ) { Some ( shared ) => shared , None => return Err ( SendError ( item ) ) , // receiver was dropped } ; let mut shared = shared . borrow_mut ( ) ; shared . buffer . push_back ( item ) ; shared . blocked_recv . wake ( ) ; Ok ( ( ) ) }
Sends the provided message along this channel.
Sends the provided message along this channel .
&self
item
T