pub struct PairingProxy { /* private fields */ }Implementations§
Source§impl PairingProxy
 
impl PairingProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
 
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.sys/Pairing.
Sourcepub fn take_event_stream(&self) -> PairingEventStream
 
pub fn take_event_stream(&self) -> PairingEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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 Clone for PairingProxy
 
impl Clone for PairingProxy
Source§fn clone(&self) -> PairingProxy
 
fn clone(&self) -> PairingProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PairingProxy
 
impl Debug for PairingProxy
Source§impl PairingProxyInterface for PairingProxy
 
impl PairingProxyInterface for PairingProxy
fn set_pairing_delegate( &self, input: InputCapability, output: OutputCapability, delegate: ClientEnd<PairingDelegateMarker>, ) -> Result<(), Error>
fn set_delegate( &self, input: InputCapability, output: OutputCapability, delegate: ClientEnd<PairingDelegate2Marker>, ) -> Result<(), Error>
Source§impl Proxy for PairingProxy
 
impl Proxy for PairingProxy
Source§type Protocol = PairingMarker
 
type Protocol = PairingMarker
Proxy controls.