pub struct BondingDelegateSynchronousProxy { /* private fields */ }
Implementations§
Source§impl BondingDelegateSynchronousProxy
impl BondingDelegateSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<BondingDelegateEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<BondingDelegateEvent, 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 restore_bonds(
&self,
bonds: &[BondingData],
___deadline: MonotonicInstant,
) -> Result<Vec<BondingData>, Error>
pub fn restore_bonds( &self, bonds: &[BondingData], ___deadline: MonotonicInstant, ) -> Result<Vec<BondingData>, Error>
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,
___deadline: MonotonicInstant,
) -> Result<BondingDelegateWatchBondsResponse, Error>
pub fn watch_bonds( &self, ___deadline: MonotonicInstant, ) -> Result<BondingDelegateWatchBondsResponse, Error>
Get the next bonding update. The request will hang until the next update.
Trait Implementations§
Source§impl SynchronousProxy for BondingDelegateSynchronousProxy
impl SynchronousProxy for BondingDelegateSynchronousProxy
Source§type Proxy = BondingDelegateProxy
type Proxy = BondingDelegateProxy
Source§type Protocol = BondingDelegateMarker
type Protocol = BondingDelegateMarker
Proxy
controls.