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
id
The Bluetooth peer ID of the peer which was being paired - request
success
true 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.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for PairingDelegate2Proxy
impl !RefUnwindSafe for PairingDelegate2Proxy
impl Send for PairingDelegate2Proxy
impl Sync for PairingDelegate2Proxy
impl Unpin for PairingDelegate2Proxy
impl !UnwindSafe for PairingDelegate2Proxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)