pub struct Connection {
    pub stream: Box<dyn Stream>,
}
Expand description

Wrapper for UART stream

Fields

stream: Box<dyn Stream>

Any boxed stream that allows for communication over serial ports

Implementations

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.