pub fn send(self, v: T) -> SessionResult<Chan<P, E, R>> {
        match write_chan(&self, v) {
            Ok(()) => Ok(self.cast()),
            Err(e) => {
                close_chan(self);
                Err(e)
            }
        }
    }
/// Send a value of type `T` over the channel. Returns a channel with protocol `P`.
Send a value of type `T` over the channel. Returns a channel with protocol `P`.
Send a value of type ` T ` over the channel . Returns a channel with protocol ` P ` .
pub fn send(self, v: T) -> SessionResult<Chan<P, E, R>> {
        match write_chan(&self, v) {
            Ok(()) => Ok(self.cast()),
            Err(e) => {
                close_chan(self);
                Err(e)
            }
        }
    }
pub fn send ( self , v : T ) -> SessionResult < Chan < P , E , R > > { match write_chan ( & self , v ) { Ok ( ( ) ) => Ok ( self . cast ( ) ) , Err ( e ) => { close_chan ( self ) ; Err ( e ) } } }
Send a value of type `T` over the channel.
Send a value of type ` T ` over the channel .
self
v
T