pub struct CanFrame { /* private fields */ }Implementations§
Source§impl CanFrame
impl CanFrame
pub fn new(id: CanId, data: &[u8]) -> Result<Self>
pub const fn from_payload(id: CanId, payload: DirectPayload) -> Self
pub const fn id(&self) -> CanId
pub fn data(&self) -> &[u8]
pub const fn padded_data(&self) -> [u8; 8]
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
Trait Implementations§
impl Copy for CanFrame
impl Eq for CanFrame
impl StructuralPartialEq for CanFrame
Auto Trait Implementations§
impl Freeze for CanFrame
impl RefUnwindSafe for CanFrame
impl Send for CanFrame
impl Sync for CanFrame
impl Unpin for CanFrame
impl UnsafeUnpin for CanFrame
impl UnwindSafe for CanFrame
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