Enum bluer::AdapterEvent
source · [−]pub enum AdapterEvent {
DeviceAdded(Address),
DeviceRemoved(Address),
PropertyChanged(AdapterProperty),
}
Available on crate feature
bluetoothd
only.Expand description
Bluetooth adapter event.
Variants
DeviceAdded(Address)
Bluetooth device with specified address was added.
DeviceRemoved(Address)
Bluetooth device with specified address was removed.
PropertyChanged(AdapterProperty)
Bluetooth adapter property changed.
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 moresourceimpl Debug for AdapterEvent
impl Debug for AdapterEvent
sourceimpl<'de> Deserialize<'de> for AdapterEvent
impl<'de> Deserialize<'de> for AdapterEvent
sourcefn 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
sourceimpl Serialize for AdapterEvent
impl Serialize 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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