#[non_exhaustive]pub enum ManagerState {
Unknown = 0,
Resetting = 1,
Unsupported = 2,
Unauthorized = 3,
PoweredOff = 4,
PoweredOn = 5,
}
Expand description
The possible states of a Core Bluetooth manager.
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.
Unknown = 0
The manager’s state is unknown.
Resetting = 1
A state that indicates the connection with the system service was momentarily lost.
Unsupported = 2
A state that indicates this device doesn’t support the Bluetooth low energy central or client role.
A state that indicates the application isn’t authorized to use the Bluetooth low energy role.
PoweredOff = 4
A state that indicates Bluetooth is currently powered off.
PoweredOn = 5
A state that indicates Bluetooth is currently powered on and available to use.
Trait Implementations§
Source§impl Clone for ManagerState
impl Clone for ManagerState
Source§fn clone(&self) -> ManagerState
fn clone(&self) -> ManagerState
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 ManagerState
impl Debug for ManagerState
Source§impl Hash for ManagerState
impl Hash for ManagerState
Source§impl Ord for ManagerState
impl Ord for ManagerState
Source§fn cmp(&self, other: &ManagerState) -> Ordering
fn cmp(&self, other: &ManagerState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ManagerState
impl PartialEq for ManagerState
Source§impl PartialOrd for ManagerState
impl PartialOrd for ManagerState
impl Copy for ManagerState
impl Eq for ManagerState
impl StructuralPartialEq for ManagerState
Auto Trait Implementations§
impl Freeze for ManagerState
impl RefUnwindSafe for ManagerState
impl Send for ManagerState
impl Sync for ManagerState
impl Unpin for ManagerState
impl UnwindSafe for ManagerState
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