P710btDevice

Trait P710btDevice 

Source
pub trait P710btDevice {
    // Required methods
    fn transmit(&mut self, bytes: &[u8]) -> Result<()>;
    fn receive_nonblock(&mut self, max: usize) -> Result<Option<Vec<u8>>>;
    fn receive_block(&mut self, max: usize) -> Result<Vec<u8>>;
}

Required Methods§

Source

fn transmit(&mut self, bytes: &[u8]) -> Result<()>

Transmits a frame to the device.

Source

fn receive_nonblock(&mut self, max: usize) -> Result<Option<Vec<u8>>>

Receives a frame from the device if possible, but will not block to read it.

Source

fn receive_block(&mut self, max: usize) -> Result<Vec<u8>>

Receives a frame from the device, blocking to wait for one if necessary.

Implementors§