pub struct ShutdownOptions { /* private fields */ }Expand description
Options accepted by crate::RestartSession::shutdown_with_options.
Implementations§
Source§impl ShutdownOptions
impl ShutdownOptions
Sourcepub const fn with_force_if_hung(self, enabled: bool) -> Self
pub const fn with_force_if_hung(self, enabled: bool) -> Self
Chooses whether unresponsive applications may be force-terminated.
Enabling this can cause data loss in affected applications.
Sourcepub const fn with_require_restart_registration(self, enabled: bool) -> Self
pub const fn with_require_restart_registration(self, enabled: bool) -> Self
Requires every affected application to have registered for restart.
Sourcepub const fn force_if_hung(self) -> bool
pub const fn force_if_hung(self) -> bool
Returns whether forced termination is enabled.
Sourcepub const fn require_restart_registration(self) -> bool
pub const fn require_restart_registration(self) -> bool
Returns whether every affected application must be restartable.
Trait Implementations§
Source§impl Clone for ShutdownOptions
impl Clone for ShutdownOptions
Source§fn clone(&self) -> ShutdownOptions
fn clone(&self) -> ShutdownOptions
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 moreimpl Copy for ShutdownOptions
Source§impl Debug for ShutdownOptions
impl Debug for ShutdownOptions
Source§impl Default for ShutdownOptions
impl Default for ShutdownOptions
Source§fn default() -> ShutdownOptions
fn default() -> ShutdownOptions
Returns the “default value” for a type. Read more
impl Eq for ShutdownOptions
Source§impl Hash for ShutdownOptions
impl Hash for ShutdownOptions
Source§impl PartialEq for ShutdownOptions
impl PartialEq for ShutdownOptions
impl StructuralPartialEq for ShutdownOptions
Auto Trait Implementations§
impl Freeze for ShutdownOptions
impl RefUnwindSafe for ShutdownOptions
impl Send for ShutdownOptions
impl Sync for ShutdownOptions
impl Unpin for ShutdownOptions
impl UnsafeUnpin for ShutdownOptions
impl UnwindSafe for ShutdownOptions
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