pub enum CentralEvent {
OnScanStateChanged {
scanning: bool,
},
OnDeviceDiscovered {
device: RemoteDevice,
},
OnPeripheralDisconnected {
identifier: String,
},
}
Variants§
Implementations§
source§impl CentralEvent
impl CentralEvent
pub fn into_on_scan_state_changed(self) -> Option<bool>
pub fn into_on_device_discovered(self) -> Option<RemoteDevice>
pub fn into_on_peripheral_disconnected(self) -> Option<String>
Trait Implementations§
Auto 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