Struct framed_serial::FramedConnection [] [src]

pub struct FramedConnection<S> where
    S: NonBlockingRx + NonBlockingTx
{ /* fields omitted */ }

Wrapper around a serial port to provide framed connections.

See the module level documentation for more information.

Methods

impl<S> FramedConnection<S> where
    S: NonBlockingRx + NonBlockingTx
[src]

Create a new FramedConnection. Takes ownership of the serial device.

Schedule a frame to be sent. Returns Err(Error) if the frame is too long, otherwise returns immediately with Ok(()).

Wait until previous send is done.

Service the connection.

Get completed frame.