pub enum UdsFrame {
Single(UdsSingleFrame),
First(UdsFirstFrame),
Consecutive(UdsConsecutiveFrame),
FlowControl(UdsFlowControlFrame),
}Expand description
UDS frame types: - Single Frame (SF) - First Frame (FF) - Consecutive Frame (CF) - Flow Control Frame (FC) - Negative Response Frame (NRC)
Variants§
Single(UdsSingleFrame)
First(UdsFirstFrame)
Consecutive(UdsConsecutiveFrame)
FlowControl(UdsFlowControlFrame)
Implementations§
Source§impl UdsFrame
impl UdsFrame
Sourcepub fn is_single_frame(&self) -> bool
pub fn is_single_frame(&self) -> bool
verify if the frame is single frame.
Sourcepub fn is_first_frame(&self) -> bool
pub fn is_first_frame(&self) -> bool
verify if the frame is first frame.
Sourcepub fn is_consecutive_frame(&self) -> bool
pub fn is_consecutive_frame(&self) -> bool
verify if the frame is consecutive frame.
Sourcepub fn is_flow_control_frame(&self) -> bool
pub fn is_flow_control_frame(&self) -> bool
verify if the frame is flow control frame.
pub fn to_vec(&self) -> Result<Vec<u8>, DiagError>
pub fn from_vec(data: Vec<u8>) -> Result<Self, DiagError>
Trait Implementations§
impl StructuralPartialEq for UdsFrame
Auto Trait Implementations§
impl Freeze for UdsFrame
impl RefUnwindSafe for UdsFrame
impl Send for UdsFrame
impl Sync for UdsFrame
impl Unpin for UdsFrame
impl UnsafeUnpin for UdsFrame
impl UnwindSafe for UdsFrame
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more