pub struct RebootWatcherClient { /* private fields */ }
Expand description
Convenience type for interacting with the Power Manager’s RebootWatcher service.
Implementations§
source§impl RebootWatcherClient
impl RebootWatcherClient
pub async fn new(test_env: &TestEnv) -> Self
sourcepub async fn get_reboot_reason(&mut self) -> RebootReason
pub async fn get_reboot_reason(&mut self) -> RebootReason
Returns the next reboot reason that the reboot watcher has received, or hangs until one is received.
Auto Trait Implementations§
impl Freeze for RebootWatcherClient
impl !RefUnwindSafe for RebootWatcherClient
impl Send for RebootWatcherClient
impl Sync for RebootWatcherClient
impl Unpin for RebootWatcherClient
impl !UnwindSafe for RebootWatcherClient
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