#[non_exhaustive]#[repr(i32)]pub enum MdfBusType {
CAN = 1,
LIN = 2,
FlexRay = 4,
MOST = 8,
Ethernet = 16,
UNKNOWN = 0,
}Expand description
\brief Enumerate that defines type of bus. Only relevant for bus logging.
Enumerate that is used when doing bus logging. The enumerate is used when creating default channel and channel group names.
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.
CAN = 1
< CAN or CAN-FD bus
LIN = 2
< LIN bus
FlexRay = 4
< FlexRay bus
MOST = 8
< MOST bus
Ethernet = 16
< Ethernet bus
UNKNOWN = 0
< Unknown bus type (Default)
Trait Implementations§
Source§impl Clone for MdfBusType
impl Clone for MdfBusType
Source§fn clone(&self) -> MdfBusType
fn clone(&self) -> MdfBusType
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 MdfBusType
impl Debug for MdfBusType
Source§impl Hash for MdfBusType
impl Hash for MdfBusType
Source§impl Ord for MdfBusType
impl Ord for MdfBusType
Source§fn cmp(&self, other: &MdfBusType) -> Ordering
fn cmp(&self, other: &MdfBusType) -> 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 MdfBusType
impl PartialEq for MdfBusType
Source§impl PartialOrd for MdfBusType
impl PartialOrd for MdfBusType
impl Copy for MdfBusType
impl Eq for MdfBusType
impl StructuralPartialEq for MdfBusType
Auto Trait Implementations§
impl Freeze for MdfBusType
impl RefUnwindSafe for MdfBusType
impl Send for MdfBusType
impl Sync for MdfBusType
impl Unpin for MdfBusType
impl UnsafeUnpin for MdfBusType
impl UnwindSafe for MdfBusType
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