#[non_exhaustive]#[repr(i16)]pub enum Kind {
Any = -1,
I2C = 0,
ISA = 1,
PCI = 2,
SPI = 3,
Virtual = 4,
ACPI = 5,
HID = 6,
MDIO = 7,
SCSI = 8,
}Expand description
Type of a 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.
Any = -1
Any type of bus.
I2C = 0
Inter-Integrated Circuit.
ISA = 1
Industry Standard Architecture.
PCI = 2
Peripheral Component Interconnect.
SPI = 3
Serial Peripheral Interface.
Virtual = 4
Virtual bus.
ACPI = 5
Advanced Configuration and Power Interface.
HID = 6
Human Interface Device.
MDIO = 7
Management Data Input/Output.
SCSI = 8
Small Computer System Interface.
Implementations§
Trait Implementations§
Source§impl Ord for Kind
impl Ord for Kind
Source§impl PartialOrd for Kind
impl PartialOrd for Kind
Source§impl TryFromPrimitive for Kind
impl TryFromPrimitive for Kind
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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