pub struct ResolvedPmDeps {
pub power_action: PowerActionFn,
pub pm_timer_assist: Option<Box<dyn PmTimerAssist>>,
}Expand description
Resolved PM dependencies (power action callback and optional timer assist).
Produced by resolve_pm_deps and consumed by
PowerManagementDevice::new.
Fields§
§power_action: PowerActionFnCallback invoked whenever a power action is requested.
pm_timer_assist: Option<Box<dyn PmTimerAssist>>Optional PM timer assist, if a resource was provided.
Auto Trait Implementations§
impl Freeze for ResolvedPmDeps
impl !RefUnwindSafe for ResolvedPmDeps
impl Send for ResolvedPmDeps
impl Sync for ResolvedPmDeps
impl Unpin for ResolvedPmDeps
impl UnsafeUnpin for ResolvedPmDeps
impl !UnwindSafe for ResolvedPmDeps
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