#[repr(u32)]pub enum BusType {
Platform = 1,
Acpi = 2,
DeviceTree = 3,
Pci = 4,
Usb = 5,
Gpio = 6,
I2C = 7,
Spi = 8,
Sdio = 9,
Uart = 10,
Spmi = 11,
UnknownOrdinal_(u32),
}
Variants§
Platform = 1
Acpi = 2
DeviceTree = 3
Pci = 4
Usb = 5
Gpio = 6
I2C = 7
Spi = 8
Sdio = 9
Uart = 10
Spmi = 11
UnknownOrdinal_(u32)
Trait Implementations§
Source§impl Encodable for BusType
impl Encodable for BusType
Source§type Encoded = WireBusType
type Encoded = WireBusType
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl From<BusType> for WireBusType
impl From<BusType> for WireBusType
Source§impl From<WireBusType> for BusType
impl From<WireBusType> for BusType
Source§fn from(wire: WireBusType) -> Self
fn from(wire: WireBusType) -> Self
Converts to this type from the input type.
Source§impl TakeFrom<WireBusType> for BusType
impl TakeFrom<WireBusType> for BusType
Source§fn take_from(from: &WireBusType) -> Self
fn take_from(from: &WireBusType) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreimpl 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 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