pub enum WatcherRequest {
Watch {
responder: WatcherWatchResponder,
},
}
Expand description
Protocol for observing changes to the system power profile.
Variants§
Watch
Watches for changes to the system power profile.
On a given connection, the first call will return immediately with the current system power
profile, while subsequent calls will only return a new profile
as the system power profile
changes. This follows the
hanging get pattern. Any
errors are considered fatal and will result in the channel being closed.
Fields
§
responder: WatcherWatchResponder
Implementations§
Source§impl WatcherRequest
impl WatcherRequest
pub fn into_watch(self) -> Option<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