[][src]Trait aimc_comms::Rx

pub trait Rx {
    fn receive(&self) -> &[u8];
}

The receiving end of a Serial Connection.

Required methods

fn receive(&self) -> &[u8]

Get all bytes received by the simulator since the last tick.

Note to Implementors

To prevent reading data twice, this buffer should be cleared after every tick.

Loading content...

Implementors

Loading content...