pub enum CANMessageId {
SFF(u16),
EFF(u32),
}Expand description
11-bit or 29-bit identifier of can frame.
Variants§
SFF(u16)
Standard Frame Format (11-bit identifier)
EFF(u32)
Extended Frame Format (29-bit identifier)
Implementations§
Source§impl CANMessageId
impl CANMessageId
pub fn with_eff_bit(self) -> u32
Trait Implementations§
Source§impl Clone for CANMessageId
impl Clone for CANMessageId
Source§fn clone(&self) -> CANMessageId
fn clone(&self) -> CANMessageId
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 CANMessageId
impl Debug for CANMessageId
Source§impl Display for CANMessageId
impl Display for CANMessageId
Source§impl From<CANMessageId> for u32
impl From<CANMessageId> for u32
Source§fn from(id: CANMessageId) -> u32
fn from(id: CANMessageId) -> u32
Converts to this type from the input type.
Source§impl From<u16> for CANMessageId
impl From<u16> for CANMessageId
Source§fn from(id: u16) -> CANMessageId
fn from(id: u16) -> CANMessageId
Converts to this type from the input type.
Source§impl Hash for CANMessageId
impl Hash for CANMessageId
Source§impl PartialEq for CANMessageId
impl PartialEq for CANMessageId
Source§impl PartialOrd for CANMessageId
impl PartialOrd for CANMessageId
Source§impl TryFrom<u32> for CANMessageId
impl TryFrom<u32> for CANMessageId
Source§type Error = ConstructionError
type Error = ConstructionError
The type returned in the event of a conversion error.
Source§fn try_from(id: u32) -> Result<CANMessageId, ConstructionError>
fn try_from(id: u32) -> Result<CANMessageId, ConstructionError>
Performs the conversion.
impl Copy for CANMessageId
impl Eq for CANMessageId
impl StructuralPartialEq for CANMessageId
Auto Trait Implementations§
impl Freeze for CANMessageId
impl RefUnwindSafe for CANMessageId
impl Send for CANMessageId
impl Sync for CANMessageId
impl Unpin for CANMessageId
impl UnwindSafe for CANMessageId
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