pub struct DevicePowerManager { /* private fields */ }Implementations§
Source§impl DevicePowerManager
impl DevicePowerManager
pub fn new(proxies: Option<(ActivityGovernorProxy, TopologyProxy)>) -> Self
Trait Implementations§
Source§impl PowerManager for DevicePowerManager
impl PowerManager for DevicePowerManager
fn take_wake_lease<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<WakeLease>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn power_element_lease<'life0, 'life1, 'async_trait>(
&'life0 self,
lease_name: &'life1 str,
dependency_token: DependencyToken,
dependency_level: u8,
) -> Pin<Box<dyn Future<Output = Result<LeaseToken, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_suspend_blocker<'life0, 'life1, 'async_trait>(
&'life0 self,
suspend_blocker: ClientEnd<SuspendBlockerMarker>,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WakeLease, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for DevicePowerManager
impl !UnwindSafe for DevicePowerManager
impl Freeze for DevicePowerManager
impl Send for DevicePowerManager
impl Sync for DevicePowerManager
impl Unpin for DevicePowerManager
impl UnsafeUnpin for DevicePowerManager
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