#[non_exhaustive]pub enum WindowEventDispatchResult {
Accepted,
Rejected,
}Expand description
Result of dispatching a window event through Slint’s runtime with
Window::dispatch_event_with_result().
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Accepted
The event was handled. For example, a key handler consumed a key press, or the window acted on a resize or close request.
Rejected
The event wasn’t handled: no element consumed it, or a handler actively refused it,
such as a close-requested callback returning reject to keep the window open.
Trait Implementations§
Source§impl Clone for WindowEventDispatchResult
impl Clone for WindowEventDispatchResult
Source§fn clone(&self) -> WindowEventDispatchResult
fn clone(&self) -> WindowEventDispatchResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WindowEventDispatchResult
impl Debug for WindowEventDispatchResult
Source§impl From<KeyEventResult> for WindowEventDispatchResult
impl From<KeyEventResult> for WindowEventDispatchResult
Source§fn from(value: KeyEventResult) -> Self
fn from(value: KeyEventResult) -> Self
Converts to this type from the input type.
Source§impl From<Option<MouseDispatchResult>> for WindowEventDispatchResult
impl From<Option<MouseDispatchResult>> for WindowEventDispatchResult
impl StructuralPartialEq for WindowEventDispatchResult
Auto Trait Implementations§
impl Freeze for WindowEventDispatchResult
impl RefUnwindSafe for WindowEventDispatchResult
impl Send for WindowEventDispatchResult
impl Sync for WindowEventDispatchResult
impl Unpin for WindowEventDispatchResult
impl UnsafeUnpin for WindowEventDispatchResult
impl UnwindSafe for WindowEventDispatchResult
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