pub struct PowerRequestClient(/* private fields */);
Expand description
Type erased object for requesting power state changes.
Implementations§
Source§impl PowerRequestClient
impl PowerRequestClient
Sourcepub fn power_request(&self, request: PowerRequest)
pub fn power_request(&self, request: PowerRequest)
Issues a power request.
Trait Implementations§
Source§impl CanResolveTo<PowerRequestClient> for PowerRequestHandleKind
impl CanResolveTo<PowerRequestClient> for PowerRequestHandleKind
Source§impl Clone for PowerRequestClient
impl Clone for PowerRequestClient
Source§fn clone(&self) -> PowerRequestClient
fn clone(&self) -> PowerRequestClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PowerRequestClient
impl !RefUnwindSafe for PowerRequestClient
impl Send for PowerRequestClient
impl Sync for PowerRequestClient
impl Unpin for PowerRequestClient
impl !UnwindSafe for PowerRequestClient
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