pub struct PowerActionOptions {
pub force_apps_closed: bool,
pub timeout_secs: u32,
pub planned: bool,
pub reason_code: Option<u32>,
pub comment: Option<String>,
}Expand description
Options for local-machine shutdown or restart operations.
Fields§
§force_apps_closed: boolForce-close running applications.
timeout_secs: u32Delay in seconds before executing the action.
planned: boolMark the action as planned in shutdown reason flags.
reason_code: Option<u32>Optional shutdown reason code. If None, a default reason is used.
comment: Option<String>Optional shutdown comment displayed to interactive users.
Trait Implementations§
Source§impl Clone for PowerActionOptions
impl Clone for PowerActionOptions
Source§fn clone(&self) -> PowerActionOptions
fn clone(&self) -> PowerActionOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PowerActionOptions
impl Debug for PowerActionOptions
Source§impl Default for PowerActionOptions
impl Default for PowerActionOptions
Source§fn default() -> PowerActionOptions
fn default() -> PowerActionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PowerActionOptions
impl RefUnwindSafe for PowerActionOptions
impl Send for PowerActionOptions
impl Sync for PowerActionOptions
impl Unpin for PowerActionOptions
impl UnsafeUnpin for PowerActionOptions
impl UnwindSafe for PowerActionOptions
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