[][src]Trait n2k::hal::can::Receiver

pub trait Receiver {
    type Frame: Frame;
    type Error;
    fn receive(&mut self) -> Result<Self::Frame, Self::Error>;
}

A CAN interface that is able to receive frames.

Associated Types

type Frame: Frame

Associated frame type.

type Error

Associated error type.

Loading content...

Required methods

fn receive(&mut self) -> Result<Self::Frame, Self::Error>

Returns a received frame if available.

Loading content...

Implementors

Loading content...