#[non_exhaustive]#[repr(u8)]pub enum HostBusType {
Undefined = 0,
Equad = 1,
Usb = 2,
Bt = 3,
Ble = 4,
BlePro = 5,
}Expand description
Bus type associated with a host slot.
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.
Undefined = 0
Undefined or unknown bus type.
Equad = 1
eQuad wireless.
Usb = 2
USB.
Bt = 3
Bluetooth classic.
Ble = 4
Bluetooth Low Energy.
BlePro = 5
BLE Pro / Logi Bolt.
Trait Implementations§
Source§impl Clone for HostBusType
impl Clone for HostBusType
Source§fn clone(&self) -> HostBusType
fn clone(&self) -> HostBusType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostBusType
Source§impl Debug for HostBusType
impl Debug for HostBusType
impl Eq for HostBusType
Source§impl Hash for HostBusType
impl Hash for HostBusType
Source§impl PartialEq for HostBusType
impl PartialEq for HostBusType
impl StructuralPartialEq for HostBusType
Source§impl TryFrom<u8> for HostBusType
impl TryFrom<u8> for HostBusType
Source§type Error = TryFromPrimitiveError<HostBusType>
type Error = TryFromPrimitiveError<HostBusType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for HostBusType
impl TryFromPrimitive for HostBusType
const NAME: &'static str = "HostBusType"
type Primitive = u8
type Error = TryFromPrimitiveError<HostBusType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for HostBusType
impl RefUnwindSafe for HostBusType
impl Send for HostBusType
impl Sync for HostBusType
impl Unpin for HostBusType
impl UnsafeUnpin for HostBusType
impl UnwindSafe for HostBusType
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