Enum bluez_async::AdapterEvent
source · [−]#[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
Fields
powered: bool
The adapter has been powered on or off.
Discovering
Fields
discovering: bool
The adapter has started or stopped scanning for devices.
Trait Implementations
sourceimpl Clone for AdapterEvent
impl Clone for AdapterEvent
sourcefn clone(&self) -> AdapterEvent
fn clone(&self) -> AdapterEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AdapterEvent
impl Debug for AdapterEvent
sourceimpl PartialEq<AdapterEvent> for AdapterEvent
impl PartialEq<AdapterEvent> for AdapterEvent
sourcefn eq(&self, other: &AdapterEvent) -> bool
fn eq(&self, other: &AdapterEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AdapterEvent) -> bool
fn ne(&self, other: &AdapterEvent) -> bool
This method tests for !=
.
impl Eq for AdapterEvent
impl StructuralEq for AdapterEvent
impl StructuralPartialEq for AdapterEvent
Auto Trait Implementations
impl RefUnwindSafe for AdapterEvent
impl Send for AdapterEvent
impl Sync for AdapterEvent
impl Unpin for AdapterEvent
impl UnwindSafe for AdapterEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more