pub struct BondingDelegateProxy { /* private fields */ }
Implementations§
Source§impl BondingDelegateProxy
impl BondingDelegateProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.host/BondingDelegate.
Sourcepub fn take_event_stream(&self) -> BondingDelegateEventStream
pub fn take_event_stream(&self) -> BondingDelegateEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn restore_bonds(
&self,
bonds: &[BondingData],
) -> QueryResponseFut<Vec<BondingData>, DefaultFuchsiaResourceDialect>
pub fn restore_bonds( &self, bonds: &[BondingData], ) -> QueryResponseFut<Vec<BondingData>, DefaultFuchsiaResourceDialect>
Restores existing bonded devices to the host. An authenticated session will be established for future connections using the provided bonding data.
If bonding data for the LE transport is available, then the host will establish a connection if the peer directs connectable advertisements to us.
If any of the entries in bonds
could not be restored, then they will be returned in
errors
. This can happen for entries that are malformed and for peers that are already
known to the bt-host. An empty errors
list indicates that all bonds were successfully
restored.
Sourcepub fn watch_bonds(
&self,
) -> QueryResponseFut<BondingDelegateWatchBondsResponse, DefaultFuchsiaResourceDialect>
pub fn watch_bonds( &self, ) -> QueryResponseFut<BondingDelegateWatchBondsResponse, DefaultFuchsiaResourceDialect>
Get the next bonding update. The request will hang until the next update.
Trait Implementations§
Source§impl BondingDelegateProxyInterface for BondingDelegateProxy
impl BondingDelegateProxyInterface for BondingDelegateProxy
type RestoreBondsResponseFut = QueryResponseFut<Vec<BondingData>>
type WatchBondsResponseFut = QueryResponseFut<BondingDelegateWatchBondsResponse>
fn restore_bonds(&self, bonds: &[BondingData]) -> Self::RestoreBondsResponseFut
fn watch_bonds(&self) -> Self::WatchBondsResponseFut
Source§impl Clone for BondingDelegateProxy
impl Clone for BondingDelegateProxy
Source§fn clone(&self) -> BondingDelegateProxy
fn clone(&self) -> BondingDelegateProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BondingDelegateProxy
impl Debug for BondingDelegateProxy
Source§impl Proxy for BondingDelegateProxy
impl Proxy for BondingDelegateProxy
Source§type Protocol = BondingDelegateMarker
type Protocol = BondingDelegateMarker
Proxy
controls.