Struct WakeLock
pub struct WakeLock {
fd: c_int,
locked: bool,
}Expand description
A wake lock that prevents the system from sleeping.
Fields§
§fd: c_int§locked: boolImplementations§
§impl WakeLock
impl WakeLock
unsafe fn lock_unchecked(&self) -> Result<(), Error>
unsafe fn unlock_unchecked(&self) -> Result<(), Error>
unsafe fn destroy_unchecked(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WakeLock
impl RefUnwindSafe for WakeLock
impl Send for WakeLock
impl Sync for WakeLock
impl Unpin for WakeLock
impl UnwindSafe for WakeLock
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