pub struct PowerManager { /* private fields */ }Expand description
Power manager for controlling system power state
Implementations§
Source§impl PowerManager
impl PowerManager
Sourcepub fn current_mode(&self) -> PowerMode
pub fn current_mode(&self) -> PowerMode
Get current power mode
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PowerManager
impl RefUnwindSafe for PowerManager
impl Send for PowerManager
impl Sync for PowerManager
impl Unpin for PowerManager
impl UnsafeUnpin for PowerManager
impl UnwindSafe for PowerManager
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