pub struct PairingSynchronousProxy { /* private fields */ }Implementations§
Source§impl PairingSynchronousProxy
 
impl PairingSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
    &self,
    deadline: MonotonicInstant,
) -> Result<PairingEvent, Error>
 
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PairingEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn set_pairing_delegate(
    &self,
    input: InputCapability,
    output: OutputCapability,
    delegate: ClientEnd<PairingDelegateMarker>,
) -> Result<(), Error>
 
pub fn set_pairing_delegate( &self, input: InputCapability, output: OutputCapability, delegate: ClientEnd<PairingDelegateMarker>, ) -> Result<(), Error>
Assign a PairingDelegate to respond to pairing procedures. The provided I/O capabilities will be used to determine the pairing methods used.
Only one PairingDelegate can be set at a time system-wide - if this is called while another delegate is set, the new delegate will be closed immediately. Closing a PairingDelegate after it is set aborts all ongoing pairing procedures without accepting and unsets the delegate.
If no PairingDelegate is set, all pairings will be rejected even if the peer connection was initiated by the local device.
- request 
inputBluetooth input capability, seeInputCapability - request 
outputBluetooth output capability, seeOutputCapability - request 
delegatePairingDelegate which will receive pairing requests 
Sourcepub fn set_delegate(
    &self,
    input: InputCapability,
    output: OutputCapability,
    delegate: ClientEnd<PairingDelegate2Marker>,
) -> Result<(), Error>
 
pub fn set_delegate( &self, input: InputCapability, output: OutputCapability, delegate: ClientEnd<PairingDelegate2Marker>, ) -> Result<(), Error>
Assign a PairingDelegate2 to handle pairing procedures. The provided I/O capabilities will be used to determine the methods used.
Only one of PairingDelegate or PairingDelegate2 can be set at a time system-wide. If this is called while another delegate is set, the new delegate will be closed immediately.
Closing a PairingDelegate2 unsets the pairing delegate. Ongoing PairingRequests can still be completed, but new requests will act as if no delegate is set.
If no delegate is set, all pairings will be rejected even if the peer connection was initiated by the local device.
- request 
inputBluetooth input capability, seeInputCapability - request 
outputBluetooth output capability, seeOutputCapability - request 
delegatePairingDelegate2 which will receive pairing requests 
Trait Implementations§
Source§impl Debug for PairingSynchronousProxy
 
impl Debug for PairingSynchronousProxy
Source§impl From<Channel> for PairingSynchronousProxy
Available on Fuchsia only. 
impl From<Channel> for PairingSynchronousProxy
Source§impl From<PairingSynchronousProxy> for Handle
Available on Fuchsia only. 
impl From<PairingSynchronousProxy> for Handle
Source§fn from(value: PairingSynchronousProxy) -> Self
 
fn from(value: PairingSynchronousProxy) -> Self
Source§impl FromClient for PairingSynchronousProxy
Available on Fuchsia only. 
impl FromClient for PairingSynchronousProxy
Source§type Protocol = PairingMarker
 
type Protocol = PairingMarker
Source§fn from_client(value: ClientEnd<PairingMarker>) -> Self
 
fn from_client(value: ClientEnd<PairingMarker>) -> Self
Source§impl SynchronousProxy for PairingSynchronousProxy
Available on Fuchsia only. 
impl SynchronousProxy for PairingSynchronousProxy
Source§type Proxy = PairingProxy
 
type Proxy = PairingProxy
Source§type Protocol = PairingMarker
 
type Protocol = PairingMarker
Proxy controls.