pub enum IdMask {
Standard(u16),
Extended(u32),
}Expand description
Bitmask corresponding to a CAN identifier (standard or extended width).
This is typically used for acceptance filtering: a frame is accepted when the masked bits match.
Variants§
Standard(u16)
Mask for a standard 11-bit identifier.
Extended(u32)
Mask for an extended 29-bit identifier.
Trait Implementations§
impl Copy for IdMask
impl Eq for IdMask
impl StructuralPartialEq for IdMask
Auto Trait Implementations§
impl Freeze for IdMask
impl RefUnwindSafe for IdMask
impl Send for IdMask
impl Sync for IdMask
impl Unpin for IdMask
impl UnwindSafe for IdMask
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