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.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 BondingDelegateProxy
impl !RefUnwindSafe for BondingDelegateProxy
impl Send for BondingDelegateProxy
impl Sync for BondingDelegateProxy
impl Unpin for BondingDelegateProxy
impl !UnwindSafe for BondingDelegateProxy
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
)