pub enum NotifierRequest {
WatchState {
responder: NotifierWatchStateResponder,
},
}
Expand description
The Notifier protocol offers a subscription interface through which clients can watch for changes in the system’s activity state.
Variants§
WatchState
Subscribe to changes in the system’s state with a hanging-get FIDL pattern.
The server will always respond immediately with the initial state, and after that whenever the system’s state changes.
Fields
§
responder: NotifierWatchStateResponder
Implementations§
Source§impl NotifierRequest
impl NotifierRequest
pub fn into_watch_state(self) -> Option<NotifierWatchStateResponder>
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 NotifierRequest
impl !RefUnwindSafe for NotifierRequest
impl Send for NotifierRequest
impl Sync for NotifierRequest
impl Unpin for NotifierRequest
impl !UnwindSafe for NotifierRequest
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