pub enum StateRequest {
GetWatcher {
options: WatcherOptions,
watcher: ServerEnd<WatcherMarker>,
control_handle: StateControlHandle,
},
}
Expand description
Network interface state inspection and observation.
Variants§
GetWatcher
Initialize a watcher for interface state.
The server enqueues interface addition, deletion and property changes as they occur, which can then be retrieved via the pipelined protocol.
- request
options
specifies the behavior of the [Watcher
]. - request
watcher
grants access to a [Watcher
]. Closed if the queue cannot be allocated or if the queue is full when the server attempts to enqueue an event.
Implementations§
Source§impl StateRequest
impl StateRequest
pub fn into_get_watcher( self, ) -> Option<(WatcherOptions, ServerEnd<WatcherMarker>, StateControlHandle)>
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 StateRequest
impl !RefUnwindSafe for StateRequest
impl Send for StateRequest
impl Sync for StateRequest
impl Unpin for StateRequest
impl !UnwindSafe for StateRequest
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