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
The Window will be hidden (default action)
KeepWindowShown
The close request is rejected and the window will be kept shown.
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 moresourceimpl Debug for CloseRequestResponse
impl Debug for CloseRequestResponse
sourceimpl Default for CloseRequestResponse
impl Default for CloseRequestResponse
sourceimpl PartialEq<CloseRequestResponse> for CloseRequestResponse
impl PartialEq<CloseRequestResponse> for CloseRequestResponse
sourcefn eq(&self, other: &CloseRequestResponse) -> bool
fn eq(&self, other: &CloseRequestResponse) -> bool
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.