#[repr(u8)]pub enum ServiceIdentifier {
NotApplicable(u8),
EmissionsSpecificServiceRequest(u8),
UdsServiceRequest(UdsService),
EmissionsSpecificServicePositiveResponse(u8),
UdsServicePositiveResponse(u8),
NegativeResponse,
ServiceRequests(u8),
SystemSupplierServiceRequests(u8),
ServiceRequestsPositiveResponse(u8),
SystemSupplierServiceRequestsPositiveResponse(u8),
}Variants§
NotApplicable(u8)
EmissionsSpecificServiceRequest(u8)
UdsServiceRequest(UdsService)
EmissionsSpecificServicePositiveResponse(u8)
UdsServicePositiveResponse(u8)
NegativeResponse
ServiceRequests(u8)
SystemSupplierServiceRequests(u8)
ServiceRequestsPositiveResponse(u8)
SystemSupplierServiceRequestsPositiveResponse(u8)
Implementations§
Source§impl ServiceIdentifier
impl ServiceIdentifier
pub fn discriminant(&self) -> u8
Sourcepub fn has_sub_function(&self) -> bool
pub fn has_sub_function(&self) -> bool
Returns true if this service defines a sub-function byte at offset 1.
Per ISO 14229, the following services carry a sub-function byte.
Services excluded are those whose second byte is a data parameter
rather than a sub-function - for example ReadDataByIdentifier
uses a 2-byte DID, not a sub-function.
Trait Implementations§
Source§impl Clone for ServiceIdentifier
impl Clone for ServiceIdentifier
Source§fn clone(&self) -> ServiceIdentifier
fn clone(&self) -> ServiceIdentifier
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 ServiceIdentifier
impl Debug for ServiceIdentifier
Source§impl FrameRead<'_> for ServiceIdentifier
impl FrameRead<'_> for ServiceIdentifier
Source§impl FrameWrite for ServiceIdentifier
impl FrameWrite for ServiceIdentifier
Source§impl Ord for ServiceIdentifier
impl Ord for ServiceIdentifier
Source§fn cmp(&self, other: &ServiceIdentifier) -> Ordering
fn cmp(&self, other: &ServiceIdentifier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServiceIdentifier
impl PartialEq for ServiceIdentifier
Source§impl PartialOrd for ServiceIdentifier
impl PartialOrd for ServiceIdentifier
impl Copy for ServiceIdentifier
impl Eq for ServiceIdentifier
impl StructuralPartialEq for ServiceIdentifier
Auto Trait Implementations§
impl Freeze for ServiceIdentifier
impl RefUnwindSafe for ServiceIdentifier
impl Send for ServiceIdentifier
impl Sync for ServiceIdentifier
impl Unpin for ServiceIdentifier
impl UnsafeUnpin for ServiceIdentifier
impl UnwindSafe for ServiceIdentifier
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