#[repr(u8)]pub enum CloseRequestResponse {
HideWindow = 0,
KeepWindowShown = 1,
}
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 = 0
The Window will be hidden (default action)
KeepWindowShown = 1
The close request is rejected and the window will be kept shown.
Trait Implementations§
Source§impl Clone for CloseRequestResponse
impl Clone for CloseRequestResponse
Source§fn clone(&self) -> CloseRequestResponse
fn clone(&self) -> CloseRequestResponse
Returns a copy 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 CloseRequestResponse
impl Debug for CloseRequestResponse
Source§impl Default for CloseRequestResponse
impl Default for CloseRequestResponse
Source§fn default() -> CloseRequestResponse
fn default() -> CloseRequestResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for CloseRequestResponse
impl PartialEq for CloseRequestResponse
impl Copy for CloseRequestResponse
impl StructuralPartialEq for CloseRequestResponse
Auto Trait Implementations§
impl Freeze for CloseRequestResponse
impl RefUnwindSafe for CloseRequestResponse
impl Send for CloseRequestResponse
impl Sync for CloseRequestResponse
impl Unpin for CloseRequestResponse
impl UnwindSafe for CloseRequestResponse
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