CanSendError

Trait CanSendError 

Source
pub trait CanSendError: Debug {
    // Required methods
    fn into_can_message(self) -> CanMessage;
    fn message(&self) -> String;
}
Expand description

A trait for CAN errors which may come from different types of interfaces

On no_std, all the error can do is return the unsent frame. With std, it can convert any underlying errors into a String.

Required Methods§

Source

fn into_can_message(self) -> CanMessage

Convert the error into the undelivered message

Source

fn message(&self) -> String

Available on crate feature std only.

Get a string describing the error

Implementors§