pub fn try_write(&mut self, data: impl Into<Vec<u8>>) -> io::Result<()> {
        match self.0.try_send(data.into()) {
            Ok(data) => Ok(data),
            Err(TrySendError::Full(_)) => Err(io::Error::from(io::ErrorKind::WouldBlock)),
            Err(TrySendError::Closed(_)) => Err(io::Error::from(io::ErrorKind::BrokenPipe)),
        }
    }
/// Tries to write to the stdin of the remote process, returning ok if immediately
/// successful, `WouldBlock` if would need to wait to send data, and `BrokenPipe`
/// if stdin has been closed
Tries to write to the stdin of the remote process, returning ok if immediately
successful, `WouldBlock` if would need to wait to send data, and `BrokenPipe`
if stdin has been closed
Tries to write to the stdin of the remote process returning ok if immediately successful ` WouldBlock ` if would need to wait to send data and ` BrokenPipe ` if stdin has been closed
pub fn try_write(&mut self, data: impl Into<Vec<u8>>) -> io::Result<()> {
        match self.0.try_send(data.into()) {
            Ok(data) => Ok(data),
            Err(TrySendError::Full(_)) => Err(io::Error::from(io::ErrorKind::WouldBlock)),
            Err(TrySendError::Closed(_)) => Err(io::Error::from(io::ErrorKind::BrokenPipe)),
        }
    }
pub fn try_write ( & mut self , data : impl Into < Vec < u8 > > ) -> io :: Result < ( ) > { match self . 0 . try_send ( data . into ( ) ) { Ok ( data ) => Ok ( data ) , Err ( TrySendError :: Full ( _ ) ) => Err ( io :: Error :: from ( io :: ErrorKind :: WouldBlock ) ) , Err ( TrySendError :: Closed ( _ ) ) => Err ( io :: Error :: from ( io :: ErrorKind :: BrokenPipe ) ) , } }
Tries to write to the stdin of the remote process, returning ok if immediately
successful, `WouldBlock` if would need to wait to send data, and `BrokenPipe`
if stdin has been closed
Tries to write to the stdin of the remote process returning ok if immediately successful ` WouldBlock ` if would need to wait to send data and ` BrokenPipe ` if stdin has been closed
&mut self
data
impl Into<Vec<u8>>