struct WakeupState {
wakeup_event: PmWakeupEvent,
wakeup_enabled: bool,
armed_time: Instant,
metrics_event: MetricEventType,
wakeup_clear_evt: Option<Event>,
}Fields§
§wakeup_event: PmWakeupEvent§wakeup_enabled: bool§armed_time: Instant§metrics_event: MetricEventType§wakeup_clear_evt: Option<Event>Implementations§
Source§impl WakeupState
impl WakeupState
fn new(wakeup_event: Option<(PmWakeupEvent, MetricEventType)>) -> Option<Self>
fn trigger_wakeup(&mut self)
Auto Trait Implementations§
impl Freeze for WakeupState
impl RefUnwindSafe for WakeupState
impl Send for WakeupState
impl Sync for WakeupState
impl Unpin for WakeupState
impl UnwindSafe for WakeupState
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