Struct esp32_hal::twai::EspTwaiFrame
source · pub struct EspTwaiFrame { /* private fields */ }
Expand description
Structure backing the embedded_hal::can::Frame/embedded_can::Frame trait.
Trait Implementations§
source§impl Clone for EspTwaiFrame
impl Clone for EspTwaiFrame
source§fn clone(&self) -> EspTwaiFrame
fn clone(&self) -> EspTwaiFrame
Returns a copy 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 EspTwaiFrame
impl Debug for EspTwaiFrame
source§impl Frame for EspTwaiFrame
impl Frame for EspTwaiFrame
source§fn new_remote(id: impl Into<Id>, dlc: usize) -> Option<EspTwaiFrame>
fn new_remote(id: impl Into<Id>, dlc: usize) -> Option<EspTwaiFrame>
Creates a new remote frame (RTR bit set). Read more
source§fn is_extended(&self) -> bool
fn is_extended(&self) -> bool
Returns true if this frame is a extended frame.
source§fn is_remote_frame(&self) -> bool
fn is_remote_frame(&self) -> bool
Returns true if this frame is a remote frame.
source§fn dlc(&self) -> usize
fn dlc(&self) -> usize
Returns the data length code (DLC) which is in the range 0..8. Read more
source§fn is_standard(&self) -> bool
fn is_standard(&self) -> bool
Returns true if this frame is a standard frame.
source§fn is_data_frame(&self) -> bool
fn is_data_frame(&self) -> bool
Returns true if this frame is a data frame.
impl Copy for EspTwaiFrame
Auto Trait Implementations§
impl RefUnwindSafe for EspTwaiFrame
impl Send for EspTwaiFrame
impl Sync for EspTwaiFrame
impl Unpin for EspTwaiFrame
impl UnwindSafe for EspTwaiFrame
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