pub struct CanError {
pub tx_timeout: bool,
pub lost_arbitration: Option<u8>,
pub controller: Option<ControllerError>,
pub protocol: Option<(ProtocolErrorKind, Result<ProtocolErrorLocation, u8>)>,
pub transceiver: Option<TransceiverError>,
pub no_ack: bool,
pub bus_off: bool,
pub bus_error: bool,
pub restarted: bool,
pub tx_rx_error_count: Option<(u8, u8)>,
}Expand description
Error frame details.
Fields§
§tx_timeout: boolTransmit timeout.
lost_arbitration: Option<u8>Arbitration lost with bit number in bit stream. Zero if unspecified.
controller: Option<ControllerError>Controller error.
protocol: Option<(ProtocolErrorKind, Result<ProtocolErrorLocation, u8>)>Protocol error kind and location.
transceiver: Option<TransceiverError>Transceiver error.
no_ack: boolNo ack received.
bus_off: boolBus-off state.
bus_error: boolBus-error state.
restarted: boolController restarted.
tx_rx_error_count: Option<(u8, u8)>Transmit/receive error count.
Trait Implementations§
impl Copy for CanError
Auto Trait Implementations§
impl Freeze for CanError
impl RefUnwindSafe for CanError
impl Send for CanError
impl Sync for CanError
impl Unpin for CanError
impl UnsafeUnpin for CanError
impl UnwindSafe for CanError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more