pub fn read_port(&mut self, port_name: &String, buff: &mut [u8]) -> Result<usize> {
    match self.open_ports.get_mut(port_name) {
      None => Err(ErrorKind::OpenPortNotFound(port_name.to_string()).into()),
      Some(p) => p.read_port(buff),
    }
  }
/// Read data from a port into the buffer buff
/// If successful, returns Ok(usize) which is the number of
/// bytes read
Read data from a port into the buffer buff
If successful, returns Ok(usize) which is the number of
bytes read
Read data from a port into the buffer buff If successful returns Ok ( usize ) which is the number of bytes read
pub fn read_port(&mut self, port_name: &String, buff: &mut [u8]) -> Result<usize> {
    match self.open_ports.get_mut(port_name) {
      None => Err(ErrorKind::OpenPortNotFound(port_name.to_string()).into()),
      Some(p) => p.read_port(buff),
    }
  }
pub fn read_port ( & mut self , port_name : & String , buff : & mut [ u8 ] ) -> Result < usize > { match self . open_ports . get_mut ( port_name ) { None => Err ( ErrorKind :: OpenPortNotFound ( port_name . to_string ( ) ) . into ( ) ) , Some ( p ) => p . read_port ( buff ) , } }
Read data from a port into the buffer buff
If successful, returns Ok(usize) which is the number of
bytes read
Read data from a port into the buffer buff If successful returns Ok ( usize ) which is the number of bytes read
&mut self
port_name
&String
buff
&mut [u8]
&mut self
port_name
&String
buff
&mut [u8]