pub struct Frame { /* private fields */ }
Expand description
A frame of CAN data, useful for passing received frames between Veecle OS actors before they get deserialized.
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn new<const N: usize>(id: impl Into<Id>, data: [u8; N]) -> Frame
pub fn new<const N: usize>(id: impl Into<Id>, data: [u8; N]) -> Frame
Create a frame with the passed id and data.
Statically checked that N <= 8
via FrameSize
.
Trait Implementations§
Source§impl Serialize for Frame
impl Serialize for Frame
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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