pub struct ExitOptions {
pub remove_from_recents: bool,
pub kill_process: bool,
}
Expand description
Options for configuring app exit behavior
Fields§
§remove_from_recents: bool
Whether to remove the app from the recent apps list
kill_process: bool
Whether to forcefully kill the process (use with caution)
Trait Implementations§
Source§impl Clone for ExitOptions
impl Clone for ExitOptions
Source§fn clone(&self) -> ExitOptions
fn clone(&self) -> ExitOptions
Returns a duplicate 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 moreSource§impl Debug for ExitOptions
impl Debug for ExitOptions
Source§impl Default for ExitOptions
impl Default for ExitOptions
Source§fn default() -> ExitOptions
fn default() -> ExitOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExitOptions
impl<'de> Deserialize<'de> for ExitOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExitOptions
impl RefUnwindSafe for ExitOptions
impl Send for ExitOptions
impl Sync for ExitOptions
impl Unpin for ExitOptions
impl UnwindSafe for ExitOptions
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