pub struct HostWatcherSynchronousProxy { /* private fields */ }
Implementations§
Source§impl HostWatcherSynchronousProxy
impl HostWatcherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<HostWatcherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<HostWatcherEvent, 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 watch(
&self,
___deadline: MonotonicInstant,
) -> Result<Vec<HostInfo>, Error>
pub fn watch( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<HostInfo>, Error>
Obtain a list of all available Bluetooth controllers and their state. A response is sent only if this list has changed since the last time the client has sent this message.
Sourcepub fn set_active(
&self,
id: &HostId,
___deadline: MonotonicInstant,
) -> Result<HostWatcherSetActiveResult, Error>
pub fn set_active( &self, id: &HostId, ___deadline: MonotonicInstant, ) -> Result<HostWatcherSetActiveResult, Error>
Designates the host with the given id
as active. All Bluetooth procedures will be routed
over this host. Any previously assigned active host will be disabled and all of its pending
procedures will be terminated.
- error This can fail if a host with
id
was not found.
Trait Implementations§
Source§impl Debug for HostWatcherSynchronousProxy
impl Debug for HostWatcherSynchronousProxy
Source§impl SynchronousProxy for HostWatcherSynchronousProxy
impl SynchronousProxy for HostWatcherSynchronousProxy
Source§type Proxy = HostWatcherProxy
type Proxy = HostWatcherProxy
The async proxy for the same protocol.
Source§type Protocol = HostWatcherMarker
type Protocol = HostWatcherMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for HostWatcherSynchronousProxy
impl RefUnwindSafe for HostWatcherSynchronousProxy
impl Send for HostWatcherSynchronousProxy
impl Sync for HostWatcherSynchronousProxy
impl Unpin for HostWatcherSynchronousProxy
impl UnwindSafe for HostWatcherSynchronousProxy
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
Mutably borrows from an owned value. Read more