CancelEventArgs
struct · ferroui-base · v0.5.0
struct CancelEventArgs
The data of a cancellable event (the counterpart of the platform's cancel event args).
The args are a reference object: a copy shares the cancel flag with the args it was made from, so that a handler given a copy cancels the event, and copies compare by identity.
Members
new
fn new() -> Self
Creates args of an event that is not cancelled.
cancel
fn cancel(self: &Self) -> bool
Whether the event should be cancelled.
set_cancel
fn set_cancel(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebugDefaultPartialEqMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.