pub enum PairingEvent {
Searching,
DeviceFound(DiscoveredDevice),
Passkey(PasskeyMethod),
Paired {
slot: u8,
},
Failed(PairingError),
}Expand description
Events streamed out of a pairing session.
Variants§
Searching
Discovery (Bolt) or the pairing lock (Unifying) is now open.
DeviceFound(DiscoveredDevice)
Bolt only: a nearby unpaired device was discovered.
Passkey(PasskeyMethod)
Bolt only: the device asks the user to enter a passkey to authenticate.
Paired
A device was paired and assigned a receiver slot.
Failed(PairingError)
The flow ended without pairing a device.
Trait Implementations§
Source§impl Clone for PairingEvent
impl Clone for PairingEvent
Source§fn clone(&self) -> PairingEvent
fn clone(&self) -> PairingEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PairingEvent
impl RefUnwindSafe for PairingEvent
impl Send for PairingEvent
impl Sync for PairingEvent
impl Unpin for PairingEvent
impl UnsafeUnpin for PairingEvent
impl UnwindSafe for PairingEvent
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