#[non_exhaustive]pub enum AdapterEvent {
Powered {
powered: bool,
},
Discovering {
discovering: bool,
},
}
Expand description
Details of an event related to a Bluetooth adapter.
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.
Powered
The adapter has been powered on or off.
Discovering
The adapter has started or stopped scanning for devices.
Trait Implementations§
Source§impl Clone for AdapterEvent
impl Clone for AdapterEvent
Source§fn clone(&self) -> AdapterEvent
fn clone(&self) -> AdapterEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AdapterEvent
impl Debug for AdapterEvent
Source§impl PartialEq for AdapterEvent
impl PartialEq for AdapterEvent
impl Eq for AdapterEvent
impl StructuralPartialEq for AdapterEvent
Auto Trait Implementations§
impl Freeze for AdapterEvent
impl RefUnwindSafe for AdapterEvent
impl Send for AdapterEvent
impl Sync for AdapterEvent
impl Unpin for AdapterEvent
impl UnwindSafe for AdapterEvent
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