pub trait BlockingCan {
type Frame: Frame;
type Error: Error;
// Required methods
fn transmit(&mut self, frame: &Self::Frame) -> Result<(), Self::Error>;
fn receive(&mut self) -> Result<Self::Frame, Self::Error>;
}Expand description
A blocking CAN interface that is able to transmit and receive frames.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".