Enum btleplug::api::CentralEvent
source · pub enum CentralEvent {
DeviceDiscovered(PeripheralId),
DeviceUpdated(PeripheralId),
DeviceConnected(PeripheralId),
DeviceDisconnected(PeripheralId),
ManufacturerDataAdvertisement {
id: PeripheralId,
manufacturer_data: HashMap<u16, Vec<u8>>,
},
ServiceDataAdvertisement {
id: PeripheralId,
service_data: HashMap<Uuid, Vec<u8>>,
},
ServicesAdvertisement {
id: PeripheralId,
services: Vec<Uuid>,
},
}
Variants§
DeviceDiscovered(PeripheralId)
DeviceUpdated(PeripheralId)
DeviceConnected(PeripheralId)
DeviceDisconnected(PeripheralId)
ManufacturerDataAdvertisement
Emitted when a Manufacturer Data advertisement has been received from a device
ServiceDataAdvertisement
Emitted when a Service Data advertisement has been received from a device
ServicesAdvertisement
Emitted when the advertised services for a device has been updated
Trait Implementations§
source§impl Clone for CentralEvent
impl Clone for CentralEvent
source§fn clone(&self) -> CentralEvent
fn clone(&self) -> CentralEvent
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 moreAuto Trait Implementations§
impl RefUnwindSafe for CentralEvent
impl Send for CentralEvent
impl Sync for CentralEvent
impl Unpin for CentralEvent
impl UnwindSafe for CentralEvent
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