pub struct UdsSingleFrame {
pub size: u8,
pub sid: u8,
pub did: Option<u16>,
pub payload: Vec<u8>,
}Expand description
Represents a UDS Single Frame. This frame is used when the total payload fits within a single CAN frame.
Fields§
§size: u8Size of the payload (only 4 bits are used, max value is 7).
sid: u8Service Identifier (SID) for the request or response.
did: Option<u16>Optional Diagnostic Identifier (DID), used in certain services.
payload: Vec<u8>The actual payload data for the request or response.
Implementations§
Trait Implementations§
Source§impl Clone for UdsSingleFrame
impl Clone for UdsSingleFrame
Source§fn clone(&self) -> UdsSingleFrame
fn clone(&self) -> UdsSingleFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UdsSingleFrame
impl Debug for UdsSingleFrame
Source§impl PartialEq for UdsSingleFrame
impl PartialEq for UdsSingleFrame
Source§fn eq(&self, other: &UdsSingleFrame) -> bool
fn eq(&self, other: &UdsSingleFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UdsSingleFrame
Auto Trait Implementations§
impl Freeze for UdsSingleFrame
impl RefUnwindSafe for UdsSingleFrame
impl Send for UdsSingleFrame
impl Sync for UdsSingleFrame
impl Unpin for UdsSingleFrame
impl UnsafeUnpin for UdsSingleFrame
impl UnwindSafe for UdsSingleFrame
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