pub enum PairingKind {
PinCode,
Passkey,
DisplayPinCode {
pin_code: String,
},
DisplayPasskey {
passkey: u32,
entered: u16,
},
Confirmation {
passkey: u32,
},
Authorization,
Service {
uuid: String,
},
}Expand description
What a PairingRequest wants, and the answer it takes.
Variants§
PinCode
The device’s PIN code, for BluetoothAgent::answer_pin_code.
Passkey
The passkey the device shows, for
BluetoothAgent::answer_passkey.
DisplayPinCode
pin_code to show, for the user to type on the device. It shows
until BlueZ is done with it; accept or
reject only hides it.
DisplayPasskey
passkey to show, as DisplayPinCode
shows its code. entered is how many digits the device has typed,
and goes up while it shows.
Fields
Confirmation
Authorization
Whether the device may pair, as one that asks for nothing does.
Service
Whether the device may use the service uuid, such as audio.
Trait Implementations§
Source§impl Clone for PairingKind
impl Clone for PairingKind
Source§impl Debug for PairingKind
impl Debug for PairingKind
Source§impl PartialEq for PairingKind
impl PartialEq for PairingKind
impl StructuralPartialEq for PairingKind
Auto Trait Implementations§
impl Forget for PairingKind
impl Freeze for PairingKind
impl Move for PairingKind
impl RefUnwindSafe for PairingKind
impl Send for PairingKind
impl Sync for PairingKind
impl Unpin for PairingKind
impl UnsafeUnpin for PairingKind
impl UnwindSafe for PairingKind
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