pub fn write_port(&mut self, data: &[u8]) -> Result<()> {
    self
      .port
      .write_all(data)
      .and_then(|_| self.port.flush())
      .map_err(|err| ErrorKind::Io(err).into())
  }
/// Write data to the serial port
Write data to the serial port
Write data to the serial port
pub fn write_port(&mut self, data: &[u8]) -> Result<()> {
    self
      .port
      .write_all(data)
      .and_then(|_| self.port.flush())
      .map_err(|err| ErrorKind::Io(err).into())
  }
pub fn write_port ( & mut self , data : & [ u8 ] ) -> Result < ( ) > { self . port . write_all ( data ) . and_then ( | _ | self . port . flush ( ) ) . map_err ( | err | ErrorKind :: Io ( err ) . into ( ) ) }
Write data to the serial port
Write data to the serial port
&mut self
data
&[u8]
&mut self
data
&[u8]