pub struct DummySleepControl {}
Trait Implementations§
source§impl SleepControl for DummySleepControl
impl SleepControl for DummySleepControl
source§unsafe fn reset(&mut self)
unsafe fn reset(&mut self)
Reset the sleep mode to default state. Both Idle and Standby mode will
be uninhibited.
source§fn inhibit_standby(&mut self) -> PermitStandbyToken
fn inhibit_standby(&mut self) -> PermitStandbyToken
Prevent the CPU going into Standby mode. The CPU will not be allowed
to Standby until a corresponding call to
permit_standby()
is made. Read moresource§fn permit_standby(&mut self, token: PermitStandbyToken)
fn permit_standby(&mut self, token: PermitStandbyToken)
Permit the CPU to enter Standby mode, if it was previously inhibited
by
inhibit_standby()
. Read moresource§fn standby_permitted(&self) -> bool
fn standby_permitted(&self) -> bool
Return true iff the CPU is currently permitted to Standby.
source§fn inhibit_idle(&mut self) -> PermitIdleToken
fn inhibit_idle(&mut self) -> PermitIdleToken
Prevent the CPU going into Idle mode. The CPU will not be allowed
to Idle until a corresponding call to
permit_idle()
is made. Read moresource§fn permit_idle(&mut self, token: PermitIdleToken)
fn permit_idle(&mut self, token: PermitIdleToken)
Permit the CPU to enter Idle mode, if it was previously inhibited
by
inhibit_idle()
. Read moresource§fn idle_permitted(&self) -> bool
fn idle_permitted(&self) -> bool
Return true iff the CPU is currently permitted to Idle.
Auto Trait Implementations§
impl Freeze for DummySleepControl
impl RefUnwindSafe for DummySleepControl
impl Send for DummySleepControl
impl Sync for DummySleepControl
impl Unpin for DummySleepControl
impl UnwindSafe for DummySleepControl
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