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 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 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,
) -> Result<Self, Error>
fn flow_ctrl_frame( state: FlowControlState, block_size: u8, st_min: u8, ) -> Result<Self, Error>
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