pub enum AdapterState {
Available,
PoweredOff,
NotFound,
Unknown,
}Expand description
Bluetooth adapter state.
Variants§
Available
Adapter is available and powered on.
PoweredOff
Adapter is available but powered off.
NotFound
No adapter found.
Unknown
Adapter state is unknown.
Trait Implementations§
Source§impl Clone for AdapterState
impl Clone for AdapterState
Source§fn clone(&self) -> AdapterState
fn clone(&self) -> AdapterState
Returns a duplicate 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 AdapterState
impl Debug for AdapterState
Source§impl<'de> Deserialize<'de> for AdapterState
impl<'de> Deserialize<'de> for AdapterState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AdapterState
impl PartialEq for AdapterState
Source§impl Serialize for AdapterState
impl Serialize for AdapterState
impl Copy for AdapterState
impl Eq for AdapterState
impl StructuralPartialEq for AdapterState
Auto Trait Implementations§
impl Freeze for AdapterState
impl RefUnwindSafe for AdapterState
impl Send for AdapterState
impl Sync for AdapterState
impl Unpin for AdapterState
impl UnwindSafe for AdapterState
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