[][src]Struct mai400_api::Connection

pub struct Connection {
    pub stream: Box<dyn 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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]