Enum i_slint_core::api::CloseRequestResponse
source · [−]#[repr(C)]
pub enum CloseRequestResponse {
HideWindow,
KeepWindowShown,
}
Expand description
This enum describes whether a Window is allowed to be hidden when the user tries to close the window. It is the return type of the callback provided to Window::on_close_requested.
Variants
HideWindow
KeepWindowShown
Trait Implementations
sourceimpl Clone for CloseRequestResponse
impl Clone for CloseRequestResponse
sourcefn clone(&self) -> CloseRequestResponse
fn clone(&self) -> CloseRequestResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CloseRequestResponse
impl Debug for CloseRequestResponse
sourceimpl Default for CloseRequestResponse
impl Default for CloseRequestResponse
impl Copy for CloseRequestResponse
impl StructuralPartialEq for CloseRequestResponse
Auto Trait Implementations
impl RefUnwindSafe for CloseRequestResponse
impl Send for CloseRequestResponse
impl Sync for CloseRequestResponse
impl Unpin for CloseRequestResponse
impl UnwindSafe for CloseRequestResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more