pub enum RebootWatcherRequest {
OnReboot {
options: RebootOptions,
responder: RebootWatcherOnRebootResponder,
},
}
Expand description
Allows components to be notified when Reboot related methods are called. Watchers will be given ‘MAX_REBOOT_WATCHER_RESPONSE_TIME_SECONDS’ to return before the system power state is changed. The channel will be used once to send a notification to the watcher. Once the watcher responds or the timeout expires, the channel will be closed by the client of RebootWatcher.
Variants§
OnReboot
Implementations§
Source§impl RebootWatcherRequest
impl RebootWatcherRequest
pub fn into_on_reboot( self, ) -> Option<(RebootOptions, RebootWatcherOnRebootResponder)>
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 RebootWatcherRequest
impl !RefUnwindSafe for RebootWatcherRequest
impl Send for RebootWatcherRequest
impl Sync for RebootWatcherRequest
impl Unpin for RebootWatcherRequest
impl !UnwindSafe for RebootWatcherRequest
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