pub trait Link {
    // Required methods
    fn write_chunk(&mut self, chunk: Vec<u8>) -> Result<(), Error>;
    fn read_chunk(&mut self) -> Result<Vec<u8>, Error>;
}
Expand description

A link represents a serial connection to send and receive byte chunks from and to a device.

Required Methods§

source

fn write_chunk(&mut self, chunk: Vec<u8>) -> Result<(), Error>

source

fn read_chunk(&mut self) -> Result<Vec<u8>, Error>

Implementors§