pub struct SleepGuard { /* private fields */ }Expand description
An idle-sleep assertion held for as long as this value lives.
Implementations§
Source§impl SleepGuard
impl SleepGuard
Trait Implementations§
Source§impl Drop for SleepGuard
Available on Unix only.
impl Drop for SleepGuard
Available on Unix only.
Auto Trait Implementations§
impl !RefUnwindSafe for SleepGuard
impl !UnwindSafe for SleepGuard
impl Freeze for SleepGuard
impl Send for SleepGuard
impl Sync for SleepGuard
impl Unpin for SleepGuard
impl UnsafeUnpin for SleepGuard
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