pub struct PairingDelegate2Proxy { /* private fields */ }Implementations§
Source§impl PairingDelegate2Proxy
 
impl PairingDelegate2Proxy
Sourcepub fn new(channel: AsyncChannel) -> Self
 
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.sys/PairingDelegate2.
Sourcepub fn take_event_stream(&self) -> PairingDelegate2EventStream
 
pub fn take_event_stream(&self) -> PairingDelegate2EventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn start_request(
    &self,
    payload: PairingDelegate2StartRequestRequest,
) -> Result<(), Error>
 
pub fn start_request( &self, payload: PairingDelegate2StartRequestRequest, ) -> Result<(), Error>
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.
Sourcepub fn request_complete(&self, id: &PeerId, success: bool) -> Result<(), Error>
 
pub fn request_complete(&self, id: &PeerId, success: bool) -> Result<(), Error>
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 
Trait Implementations§
Source§impl Clone for PairingDelegate2Proxy
 
impl Clone for PairingDelegate2Proxy
Source§fn clone(&self) -> PairingDelegate2Proxy
 
fn clone(&self) -> PairingDelegate2Proxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PairingDelegate2Proxy
 
impl Debug for PairingDelegate2Proxy
Source§impl PairingDelegate2ProxyInterface for PairingDelegate2Proxy
 
impl PairingDelegate2ProxyInterface for PairingDelegate2Proxy
fn start_request( &self, payload: PairingDelegate2StartRequestRequest, ) -> Result<(), Error>
fn request_complete(&self, id: &PeerId, success: bool) -> Result<(), Error>
Source§impl Proxy for PairingDelegate2Proxy
 
impl Proxy for PairingDelegate2Proxy
Source§type Protocol = PairingDelegate2Marker
 
type Protocol = PairingDelegate2Marker
Proxy controls.