pub fn read_port(&mut self, buff: &mut [u8]) -> Result<usize> {
    self
      .port
      .read(buff)
      .map_err(|err| ErrorKind::Io(err).into())
  }
/// Read data from the serial port
Read data from the serial port
Read data from the serial port
pub fn read_port(&mut self, buff: &mut [u8]) -> Result<usize> {
    self
      .port
      .read(buff)
      .map_err(|err| ErrorKind::Io(err).into())
  }
pub fn read_port ( & mut self , buff : & mut [ u8 ] ) -> Result < usize > { self . port . read ( buff ) . map_err ( | err | ErrorKind :: Io ( err ) . into ( ) ) }
Read data from the serial port
Read data from the serial port
&mut self
buff
&mut [u8]
&mut self
buff
&mut [u8]