pub enum Control {
Auto,
On,
}Variants§
Auto
Device power is automatically managed by the system, and it may be automatically suspended
On
Device power is not automatically managed by the system, auto suspend is not allowed, and it’s woken up if it was suspended.
In short, the device will remain “on” and fully powered.
This does not prevent system suspends.
Trait Implementations§
impl Copy for Control
impl Eq for Control
impl StructuralPartialEq for Control
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
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