Struct mai400_api::Connection[][src]

pub struct Connection {
    pub stream: Box<Stream + 'static>,
}

Wrapper for UART stream

Fields

Any boxed stream that allows for communication over serial ports

Methods

impl Connection
[src]

Constructor to creation connection with provided stream

Convenience constructor to create connection from bus path

Writes out raw bytes to the stream

Reads messages upto specified length recieved on the bus

Auto Trait Implementations

impl Send for Connection

impl !Sync for Connection