pub fn try_read(&mut self) -> io::Result<Option<Vec<u8>>> {
        match self.rx.try_recv() {
            Ok(Ok(data)) => Ok(Some(data)),
            Ok(Err(x)) => Err(x),
            Err(TryRecvError::Empty) => Ok(None),
            Err(TryRecvError::Disconnected) => Err(io::Error::from(io::ErrorKind::BrokenPipe)),
        }
    }
/// Tries to read a complete LSP message over stdout, returning `None` if no complete message
/// is available
Tries to read a complete LSP message over stdout, returning `None` if no complete message
is available
Tries to read a complete LSP message over stdout returning ` None ` if no complete message is available
pub fn try_read(&mut self) -> io::Result<Option<Vec<u8>>> {
        match self.rx.try_recv() {
            Ok(Ok(data)) => Ok(Some(data)),
            Ok(Err(x)) => Err(x),
            Err(TryRecvError::Empty) => Ok(None),
            Err(TryRecvError::Disconnected) => Err(io::Error::from(io::ErrorKind::BrokenPipe)),
        }
    }
pub fn try_read ( & mut self ) -> io :: Result < Option < Vec < u8 > > > { match self . rx . try_recv ( ) { Ok ( Ok ( data ) ) => Ok ( Some ( data ) ) , Ok ( Err ( x ) ) => Err ( x ) , Err ( TryRecvError :: Empty ) => Ok ( None ) , Err ( TryRecvError :: Disconnected ) => Err ( io :: Error :: from ( io :: ErrorKind :: BrokenPipe ) ) , } }
Tries to read a complete LSP message over stdout, returning `None` if no complete message
is available
Tries to read a complete LSP message over stdout returning ` None ` if no complete message is available
&mut self