#[repr(u8)]pub enum BluetoothControllerState {
Detached = 0,
Resetting = 1,
Attached = 2,
}
Variants§
Trait Implementations§
Source§impl Clone for BluetoothControllerState
impl Clone for BluetoothControllerState
Source§fn clone(&self) -> BluetoothControllerState
fn clone(&self) -> BluetoothControllerState
Returns a copy 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 BluetoothControllerState
impl Debug for BluetoothControllerState
Source§impl From<BluetoothControllerState> for u8
impl From<BluetoothControllerState> for u8
Source§fn from(enum_value: BluetoothControllerState) -> Self
fn from(enum_value: BluetoothControllerState) -> Self
Converts to this type from the input type.
Source§impl Hash for BluetoothControllerState
impl Hash for BluetoothControllerState
Source§impl PartialEq for BluetoothControllerState
impl PartialEq for BluetoothControllerState
Source§impl TryFrom<u8> for BluetoothControllerState
impl TryFrom<u8> for BluetoothControllerState
Source§type Error = TryFromPrimitiveError<BluetoothControllerState>
type Error = TryFromPrimitiveError<BluetoothControllerState>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for BluetoothControllerState
impl TryFromPrimitive for BluetoothControllerState
const NAME: &'static str = "BluetoothControllerState"
type Primitive = u8
type Error = TryFromPrimitiveError<BluetoothControllerState>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BluetoothControllerState
impl Eq for BluetoothControllerState
impl StructuralPartialEq for BluetoothControllerState
Auto Trait Implementations§
impl Freeze for BluetoothControllerState
impl RefUnwindSafe for BluetoothControllerState
impl Send for BluetoothControllerState
impl Sync for BluetoothControllerState
impl Unpin for BluetoothControllerState
impl UnwindSafe for BluetoothControllerState
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