pub enum CanIsoTpFrame {
SingleFrame {
data: Vec<u8>,
},
FirstFrame {
length: u32,
data: Vec<u8>,
},
ConsecutiveFrame {
sequence: u8,
data: Vec<u8>,
},
FlowControlFrame(FlowControlContext),
}Expand description
ISO-TP frame define.
Variants§
SingleFrame
The ISO-TP single frame.
FirstFrame
The ISO-TP first frame.
ConsecutiveFrame
The ISO-TP consecutive frame.
FlowControlFrame(FlowControlContext)
The ISO-TP flow control frame.
Trait Implementations§
source§impl Clone for CanIsoTpFrame
impl Clone for CanIsoTpFrame
source§fn clone(&self) -> CanIsoTpFrame
fn clone(&self) -> CanIsoTpFrame
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 CanIsoTpFrame
impl Debug for CanIsoTpFrame
source§impl<'a> From<&'a CanIsoTpFrame> for FrameType
impl<'a> From<&'a CanIsoTpFrame> for FrameType
source§fn from(value: &'a CanIsoTpFrame) -> Self
fn from(value: &'a CanIsoTpFrame) -> Self
Converts to this type from the input type.
source§impl IsoTpFrame for CanIsoTpFrame
impl IsoTpFrame for CanIsoTpFrame
source§fn decode<T: AsRef<[u8]>>(data: T) -> Result<Self, Error>
fn decode<T: AsRef<[u8]>>(data: T) -> Result<Self, Error>
Decode frame from origin data like
02 10 01. Read moresource§fn from_data<T: AsRef<[u8]>>(data: T) -> Result<Vec<Self>, Error>
fn from_data<T: AsRef<[u8]>>(data: T) -> Result<Vec<Self>, Error>
Encoding full multi-frame from original data. Read more
source§fn single_frame<T: AsRef<[u8]>>(data: T) -> Result<Self, Error>
fn single_frame<T: AsRef<[u8]>>(data: T) -> Result<Self, Error>
New single frame from data. Read more
source§fn flow_ctrl_frame(state: FlowControlState, block_size: u8, st_min: u8) -> Self
fn flow_ctrl_frame(state: FlowControlState, block_size: u8, st_min: u8) -> Self
New flow control frame from data. Read more
fn default_flow_ctrl_frame() -> Selfwhere
Self: Sized,
impl Send for CanIsoTpFrame
Auto Trait Implementations§
impl Freeze for CanIsoTpFrame
impl RefUnwindSafe for CanIsoTpFrame
impl Sync for CanIsoTpFrame
impl Unpin for CanIsoTpFrame
impl UnwindSafe for CanIsoTpFrame
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)