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 duplicate 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 Freeze for CentralEvent
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