pub enum HostWatcherRequest {
Watch {
responder: HostWatcherWatchResponder,
},
SetActive {
id: HostId,
responder: HostWatcherSetActiveResponder,
},
}
Expand description
Protocol used to observe and manage the Bluetooth controllers on the system.
Variants§
Watch
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.
Fields
§
responder: HostWatcherWatchResponder
SetActive
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.
Implementations§
Source§impl HostWatcherRequest
impl HostWatcherRequest
pub fn into_watch(self) -> Option<HostWatcherWatchResponder>
pub fn into_set_active(self) -> Option<(HostId, HostWatcherSetActiveResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostWatcherRequest
impl !RefUnwindSafe for HostWatcherRequest
impl Send for HostWatcherRequest
impl Sync for HostWatcherRequest
impl Unpin for HostWatcherRequest
impl !UnwindSafe for HostWatcherRequest
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