[][src]Enum stm32f3xx_hal::can::CanId

pub enum CanId {
    BaseId(u16),
    ExtendedId(u32),
}

A CAN identifier, which can be either 11 or 27 (extended) bits. u16 and u32 respectively are used here despite the fact that the upper bits are unused.

Variants

BaseId(u16)

Standard 11bit Identifier (0..=0x7FF)

ExtendedId(u32)

Extended 29bit Identifier (0..=0x1FFF_FFFF)

Trait Implementations

impl Clone for CanId[src]

impl Copy for CanId[src]

impl Debug for CanId[src]

impl Eq for CanId[src]

impl Id for CanId[src]

type BaseId = u16

The (11-bit) BaseId variant.

type ExtendedId = u32

The (29-bit) ExtendedId variant.

impl PartialEq<CanId> for CanId[src]

impl StructuralEq for CanId[src]

impl StructuralPartialEq for CanId[src]

Auto Trait Implementations

impl Send for CanId

impl Sync for CanId

impl Unpin for CanId

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.