pub struct N2kMessage {
pub header: N2kHeader,
pub len: usize,
pub body: [u8; 8],
}Expand description
An N2kMessage has a header and a body. The header is encoded into a 32-bit header field for a CAN-frame. The body is a sequence of up to 8 bytes. Longer messages need to be split into multiple CAN-frames with a counter at the start of each body. The life-time of an N2kMessage is coupled to the liftime of its underlying data sequence.
Fields§
§header: N2kHeader§len: usize§body: [u8; 8]Implementations§
Source§impl N2kMessage
impl N2kMessage
Auto Trait Implementations§
impl Freeze for N2kMessage
impl RefUnwindSafe for N2kMessage
impl Send for N2kMessage
impl Sync for N2kMessage
impl Unpin for N2kMessage
impl UnwindSafe for N2kMessage
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