pub struct Inhibit { /* private fields */ }Expand description
an inhibition; dropping it lets the system sleep again
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Inhibit
impl Freeze for Inhibit
impl RefUnwindSafe for Inhibit
impl Send for Inhibit
impl Sync for Inhibit
impl Unpin for Inhibit
impl UnsafeUnpin for Inhibit
impl UnwindSafe for Inhibit
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