pub enum Id {
Standard(StandardId),
Extended(ExtendedId),
}
Available on crate feature
unstable
only.Expand description
A TWAI Identifier (standard or extended).
Variants§
Standard(StandardId)
Standard 11-bit Identifier (0..=0x7FF
).
Extended(ExtendedId)
Extended 29-bit Identifier (0..=0x1FFF_FFFF
).
Trait Implementations§
Source§impl From<ExtendedId> for Id
impl From<ExtendedId> for Id
Source§fn from(id: ExtendedId) -> Self
fn from(id: ExtendedId) -> Self
Converts to this type from the input type.
Source§impl From<Id> for Id
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl From<Id> for Id
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§impl From<Id> for Id
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl From<Id> for Id
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§impl From<StandardId> for Id
impl From<StandardId> for Id
Source§fn from(id: StandardId) -> Self
fn from(id: StandardId) -> Self
Converts to this type from the input type.
impl Copy for Id
impl Eq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)