pub struct SimCanFrame {
pub arb_id: u32,
pub len: u8,
pub flags: u8,
pub data: [u8; 64],
}Fields§
§arb_id: u32§len: u8§flags: u8§data: [u8; 64]Implementations§
Source§impl SimCanFrame
impl SimCanFrame
pub fn to_raw(&self) -> SimCanFrameRaw
pub fn from_raw(raw: SimCanFrameRaw) -> Self
pub fn payload(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Clone for SimCanFrame
impl Clone for SimCanFrame
Source§fn clone(&self) -> SimCanFrame
fn clone(&self) -> SimCanFrame
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 SimCanFrame
impl Debug for SimCanFrame
Source§impl From<&SimCanFrame> for CanFrameWireData
impl From<&SimCanFrame> for CanFrameWireData
Source§fn from(value: &SimCanFrame) -> Self
fn from(value: &SimCanFrame) -> Self
Converts to this type from the input type.
Source§impl From<SimCanFrame> for CanFrameWireData
impl From<SimCanFrame> for CanFrameWireData
Source§fn from(value: SimCanFrame) -> Self
fn from(value: SimCanFrame) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SimCanFrame
impl PartialEq for SimCanFrame
Source§impl TryFrom<CanFrameWireData> for SimCanFrame
impl TryFrom<CanFrameWireData> for SimCanFrame
impl Eq for SimCanFrame
impl StructuralPartialEq for SimCanFrame
Auto Trait Implementations§
impl Freeze for SimCanFrame
impl RefUnwindSafe for SimCanFrame
impl Send for SimCanFrame
impl Sync for SimCanFrame
impl Unpin for SimCanFrame
impl UnsafeUnpin for SimCanFrame
impl UnwindSafe for SimCanFrame
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