pub enum PrivilegedCentralEvent {
OnScanStateChanged {
scanning: bool,
},
OnDeviceDiscovered {
device: RemoteDevice,
},
OnPeripheralDisconnected {
identifier: String,
},
}Variants§
Implementations§
Source§impl PrivilegedCentralEvent
impl PrivilegedCentralEvent
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 PrivilegedCentralEvent
impl RefUnwindSafe for PrivilegedCentralEvent
impl Send for PrivilegedCentralEvent
impl Sync for PrivilegedCentralEvent
impl Unpin for PrivilegedCentralEvent
impl UnsafeUnpin for PrivilegedCentralEvent
impl UnwindSafe for PrivilegedCentralEvent
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