pub enum RebootMethodsWatcherRequest {
OnReboot {
reason: RebootReason,
responder: RebootMethodsWatcherOnRebootResponder,
},
}
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 RebootMethodsWatcher.
Variants§
OnReboot
Implementations§
Source§impl RebootMethodsWatcherRequest
impl RebootMethodsWatcherRequest
pub fn into_on_reboot( self, ) -> Option<(RebootReason, RebootMethodsWatcherOnRebootResponder)>
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 RebootMethodsWatcherRequest
impl !RefUnwindSafe for RebootMethodsWatcherRequest
impl Send for RebootMethodsWatcherRequest
impl Sync for RebootMethodsWatcherRequest
impl Unpin for RebootMethodsWatcherRequest
impl !UnwindSafe for RebootMethodsWatcherRequest
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