pub struct CanFaultConfig {
pub message: FaultConfig,
pub arbitration_loss: (u32, u32),
pub bit_error: (u32, u32),
pub bus_off: (u32, u32),
}Fields§
§message: FaultConfigUnderlying message-level fault config.
arbitration_loss: (u32, u32)Probability a frame is dropped due to arbitration loss
bit_error: (u32, u32)Probability a frame triggers a bit error (corruption + retry drop).
bus_off: (u32, u32)Probability the bus enters bus-off state on any given tick. When bus-off, all frames are
dropped until reset_bus_off().
Implementations§
Trait Implementations§
Source§impl Clone for CanFaultConfig
impl Clone for CanFaultConfig
Source§fn clone(&self) -> CanFaultConfig
fn clone(&self) -> CanFaultConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CanFaultConfig
impl RefUnwindSafe for CanFaultConfig
impl Send for CanFaultConfig
impl Sync for CanFaultConfig
impl Unpin for CanFaultConfig
impl UnsafeUnpin for CanFaultConfig
impl UnwindSafe for CanFaultConfig
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