pub enum PairingDelegate2Request {
    StartRequest {
        payload: PairingDelegate2StartRequestRequest,
        control_handle: PairingDelegate2ControlHandle,
    },
    RequestComplete {
        id: PeerId,
        success: bool,
        control_handle: PairingDelegate2ControlHandle,
    },
}Expand description
A Bluetooth Pairing Delegate is responsible for confirming or denying pairing requests received from Bluetooth peers that connect or are being connected to the local device.
Any new pairing will result in a call to PairingDelegate.StartRequest,
including pairings where the InputCapability and OutputCapability are set
to none. The delegate is expected to have enough context to derive whether
to accept or reject the pairing.
Only one delegate is allowed to be set per system at a time. See
fuchsia.bluetooth.sys.Pairing for how to set the pairing delegate.
Variants§
StartRequest
Called when a pairing with peer is started. The pairing process is
continued using the PairingRequest protocol.
The properties of the pairing are provided in info which indicates
what type of interaction is intended locally.
Multiple requests can be active at one time for different peers, and requests can outlive this protocol. Dropping the request protocol will automatically reject the pairing.
All fields will always be present.
RequestComplete
Called when the pairing procedure for a peer has been completed. This can be due to successful completion or an error (e.g. due to cancellation by the peer, a timeout, or disconnection).
- request 
idThe Bluetooth peer ID of the peer which was being paired - request 
successtrue if the pairing succeeded, otherwise false 
Implementations§
Source§impl PairingDelegate2Request
 
impl PairingDelegate2Request
pub fn into_start_request( self, ) -> Option<(PairingDelegate2StartRequestRequest, PairingDelegate2ControlHandle)>
pub fn into_request_complete( self, ) -> Option<(PeerId, bool, PairingDelegate2ControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
 
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL