pub struct BMMessageId(/* private fields */);Expand description
Busmust CAN Message ID.
You could also use an u32, but please take care of memory alignments.
Implementations§
Source§impl BMMessageId
impl BMMessageId
pub const fn new() -> Self
Sourcepub fn set_reserved1(&mut self, value: bool)
pub fn set_reserved1(&mut self, value: bool)
Reserved
Bits: 29..30
Sourcepub const fn with_reserved1(self, value: bool) -> Self
pub const fn with_reserved1(self, value: bool) -> Self
Reserved
Bits: 29..30
Sourcepub fn set_reserved2(&mut self, value: u8)
pub fn set_reserved2(&mut self, value: u8)
Reserved
Bits: 30..32
Sourcepub const fn with_reserved2(self, value: u8) -> Self
pub const fn with_reserved2(self, value: u8) -> Self
Reserved
Bits: 30..32
Trait Implementations§
Source§impl Clone for BMMessageId
impl Clone for BMMessageId
Source§fn clone(&self) -> BMMessageId
fn clone(&self) -> BMMessageId
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 moreSource§impl Debug for BMMessageId
impl Debug for BMMessageId
Source§impl From<BMMessageId> for u32
impl From<BMMessageId> for u32
Source§fn from(v: BMMessageId) -> u32
fn from(v: BMMessageId) -> u32
Converts to this type from the input type.
Source§impl From<u32> for BMMessageId
impl From<u32> for BMMessageId
impl Copy for BMMessageId
Auto Trait Implementations§
impl Freeze for BMMessageId
impl RefUnwindSafe for BMMessageId
impl Send for BMMessageId
impl Sync for BMMessageId
impl Unpin for BMMessageId
impl UnwindSafe for BMMessageId
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