pub struct ExitRequestApi { /* private fields */ }Expand description
Api exposed on the ExitRequested event.
Implementations§
Source§impl ExitRequestApi
impl ExitRequestApi
Sourcepub fn prevent_exit(&self)
pub fn prevent_exit(&self)
Prevents the app from exiting.
Note: This is ignored when using AppHandle.
Trait Implementations§
Source§impl Clone for ExitRequestApi
impl Clone for ExitRequestApi
Source§fn clone(&self) -> ExitRequestApi
fn clone(&self) -> ExitRequestApi
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 moreAuto Trait Implementations§
impl Freeze for ExitRequestApi
impl RefUnwindSafe for ExitRequestApi
impl Send for ExitRequestApi
impl Sync for ExitRequestApi
impl Unpin for ExitRequestApi
impl UnwindSafe for ExitRequestApi
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