pub enum WatcherRequest {
Watch {
ids: Vec<Identifier>,
responder: WatcherWatchResponder,
},
}
Expand description
Protocol used to observe peripherals owned & discovered by the system.
Variants§
Watch
A hanging get to obtain a list of discovered peripherals and their information.
A response is sent only if this list has changed since the last time the client has sent
this message. The first call to Watch
will resolve immediately with the initial set of
peripheral information.
- request
ids
is a list of identifiers to filter the peripheral information on. Use an empty list to receive updates about all peripherals.
- response
peripherals
is a list of information about the requested peripherals.
Implementations§
Source§impl WatcherRequest
impl WatcherRequest
pub fn into_watch(self) -> Option<(Vec<Identifier>, WatcherWatchResponder)>
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 WatcherRequest
impl !RefUnwindSafe for WatcherRequest
impl Send for WatcherRequest
impl Sync for WatcherRequest
impl Unpin for WatcherRequest
impl !UnwindSafe for WatcherRequest
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