Enum ecu_diagnostics::uds::UDSSessionType
source · [−]pub enum UDSSessionType {
Default,
Programming,
Extended,
SafetySystem,
Other(u8),
}
Expand description
UDS Diagnostic session modes. Handled by SID 0x10
Variants
Default
Default diagnostic session mode (ECU is normally in this mode on startup) This session type does not require the diagnostic server to sent TesterPresent messages
Programming
This diagnostic session mode enables all diagnostic services related to flashing or programming the ECU
Extended
This diagnostic session mode enabled all diagnostic services and allows adjusting ECU values
SafetySystem
This diagnostic session enables all diagnostic services required to support safety system-related functions
Other(u8)
Custom session type. This covers both vehicleManufacturerSpecific modes (0x40-0x5F) and systemSupplierSpecific modes (0x60-0x7E).
Trait Implementations
sourceimpl Clone for UDSSessionType
impl Clone for UDSSessionType
sourcefn clone(&self) -> UDSSessionType
fn clone(&self) -> UDSSessionType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UDSSessionType
impl Debug for UDSSessionType
sourceimpl From<UDSSessionType> for u8
impl From<UDSSessionType> for u8
sourcefn from(from: UDSSessionType) -> u8
fn from(from: UDSSessionType) -> u8
Converts to this type from the input type.
sourceimpl Ord for UDSSessionType
impl Ord for UDSSessionType
sourceimpl PartialEq<UDSSessionType> for UDSSessionType
impl PartialEq<UDSSessionType> for UDSSessionType
sourcefn eq(&self, other: &UDSSessionType) -> bool
fn eq(&self, other: &UDSSessionType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UDSSessionType) -> bool
fn ne(&self, other: &UDSSessionType) -> bool
This method tests for !=
.
sourceimpl PartialOrd<UDSSessionType> for UDSSessionType
impl PartialOrd<UDSSessionType> for UDSSessionType
sourcefn partial_cmp(&self, other: &UDSSessionType) -> Option<Ordering>
fn partial_cmp(&self, other: &UDSSessionType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl ServerEventHandler<UDSSessionType> for UdsVoidHandler
impl ServerEventHandler<UDSSessionType> for UdsVoidHandler
sourcefn on_event(&mut self, _e: ServerEvent<'_, UDSSessionType>)
fn on_event(&mut self, _e: ServerEvent<'_, UDSSessionType>)
Handle incoming server events
impl Copy for UDSSessionType
impl Eq for UDSSessionType
impl StructuralEq for UDSSessionType
impl StructuralPartialEq for UDSSessionType
Auto Trait Implementations
impl RefUnwindSafe for UDSSessionType
impl Send for UDSSessionType
impl Sync for UDSSessionType
impl Unpin for UDSSessionType
impl UnwindSafe for UDSSessionType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more