#[non_exhaustive]#[repr(u8)]pub enum SourceType {
Other = 0,
Ecu = 1,
Bus = 2,
IoDevice = 3,
Tool = 4,
User = 5,
}Expand description
\brief Type of source information.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Other = 0
< Unknown source type.
Ecu = 1
< ECU.
Bus = 2
< Bus.
IoDevice = 3
< I/O device.
Tool = 4
< Tool.
User = 5
< User.
Trait Implementations§
Source§impl Clone for SourceType
impl Clone for SourceType
Source§fn clone(&self) -> SourceType
fn clone(&self) -> SourceType
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 SourceType
impl Debug for SourceType
Source§impl Hash for SourceType
impl Hash for SourceType
Source§impl Ord for SourceType
impl Ord for SourceType
Source§fn cmp(&self, other: &SourceType) -> Ordering
fn cmp(&self, other: &SourceType) -> 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 SourceType
impl PartialEq for SourceType
Source§impl PartialOrd for SourceType
impl PartialOrd for SourceType
impl Copy for SourceType
impl Eq for SourceType
impl StructuralPartialEq for SourceType
Auto Trait Implementations§
impl Freeze for SourceType
impl RefUnwindSafe for SourceType
impl Send for SourceType
impl Sync for SourceType
impl Unpin for SourceType
impl UnsafeUnpin for SourceType
impl UnwindSafe for SourceType
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