Struct windows::System::ShutdownManager
pub struct ShutdownManager;
Implementations§
§impl ShutdownManager
impl ShutdownManager
pub fn BeginShutdown( shutdownkind: ShutdownKind, timeout: TimeSpan, ) -> Result<()>
pub fn CancelShutdown() -> Result<()>
pub fn IsPowerStateSupported(powerstate: PowerState) -> Result<bool>
pub fn EnterPowerState(powerstate: PowerState) -> Result<()>
pub fn EnterPowerStateWithTimeSpan( powerstate: PowerState, wakeupafter: TimeSpan, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for ShutdownManager
impl RefUnwindSafe for ShutdownManager
impl Send for ShutdownManager
impl Sync for ShutdownManager
impl Unpin for ShutdownManager
impl UnwindSafe for ShutdownManager
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