Trait embedded_serial::ImmutBlockingRx [] [src]

pub trait ImmutBlockingRx {
    type Error;
    fn getc(&self) -> Result<u8, Self::Error>;

    fn gets<I: ?Sized>(
        &self,
        buffer: &mut I
    ) -> Result<(), (usize, Self::Error)>
    where
        I: AsMut<[u8]>
, { ... } }

Implementors of this trait offer octet based serial data reception using a blocking API and requiring a mutable reference to self.

Associated Types

The error type returned if a function fails.

Required Methods

Read a single octet from the port's receiver, blocking until the octet can be read from the buffer.

In some implementations, this can result in an Error. If not, use type Error = !.

Provided Methods

Read a specified number of octets into the given buffer, blocking until that many have been read.

In some implementations, this can result in an Error. If not, use type Error = !.

Implementors