#[non_exhaustive]#[repr(u8)]pub enum BusType {
None = 0,
Other = 1,
Can = 2,
Lin = 3,
Most = 4,
FlexRay = 5,
Kline = 6,
Ethernet = 7,
Usb = 8,
}Expand description
\brief Type of bus.
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.
None = 0
< No bus (default).
Other = 1
< Unknown bus type.
Can = 2
< CAN bus.
Lin = 3
< LIN bus.
Most = 4
< MOST bus.
FlexRay = 5
< FlexRay bus.
Kline = 6
< KLINE bus.
Ethernet = 7
< EtherNet bus.
Usb = 8
< USB bus.
Trait Implementations§
Source§impl Ord for BusType
impl Ord for BusType
Source§impl PartialOrd for BusType
impl PartialOrd for BusType
impl Copy for BusType
impl Eq for BusType
impl StructuralPartialEq for BusType
Auto Trait Implementations§
impl Freeze for BusType
impl RefUnwindSafe for BusType
impl Send for BusType
impl Sync for BusType
impl Unpin for BusType
impl UnsafeUnpin for BusType
impl UnwindSafe for BusType
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