pub struct UdsNegativeResponse {
pub size: u8,
pub rsid: UdsCommand,
pub nrc: UdsError,
}Expand description
Represents a UDS Negative Response frame. This frame is sent by the ECU when a UDS request fails.
Fields§
§size: u8Size of the payload (only 4 bits are used, max value is 7).
rsid: UdsCommandService Identifier (SID) that caused the negative response.
nrc: UdsErrorNegative Response Code (NRC) indicating the reason for failure.
Implementations§
Source§impl UdsNegativeResponse
impl UdsNegativeResponse
Sourcepub fn new(rsid: UdsCommand, nrc: UdsError, size: u8) -> Self
pub fn new(rsid: UdsCommand, nrc: UdsError, size: u8) -> Self
Trait Implementations§
Source§impl Clone for UdsNegativeResponse
impl Clone for UdsNegativeResponse
Source§fn clone(&self) -> UdsNegativeResponse
fn clone(&self) -> UdsNegativeResponse
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 UdsNegativeResponse
impl Debug for UdsNegativeResponse
Source§impl PartialEq for UdsNegativeResponse
impl PartialEq for UdsNegativeResponse
impl StructuralPartialEq for UdsNegativeResponse
Auto Trait Implementations§
impl Freeze for UdsNegativeResponse
impl RefUnwindSafe for UdsNegativeResponse
impl Send for UdsNegativeResponse
impl Sync for UdsNegativeResponse
impl Unpin for UdsNegativeResponse
impl UnwindSafe for UdsNegativeResponse
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