pub enum UiEvent {
Event(Event),
Custom(Box<dyn Any>),
Directed(Id, Box<dyn Any>),
Returnable(Id, Id, Box<dyn Any>),
Quit,
}
Expand description
An event that the Ui
can process.
Variants
Event(Event)
An Event
that can be handled by a Handleable
.
Custom(Box<dyn Any>)
A custom event that can contain arbitrary data.
Directed(Id, Box<dyn Any>)
A custom event directed to a certain widget.
This custom event is destined for a particular widget, described
by the given Id
. That is the only widget that will receive the
event.
Returnable(Id, Id, Box<dyn Any>)
A custom event that is guaranteed to be returned back to the
issuer. The first Id
represents the source (i.e., the widget the
event will be returned to), while the second one identifies the
destination (the widget actually “handling” the event).
Quit
A request to quit the application has been made.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for UiEvent
impl !Send for UiEvent
impl !Sync for UiEvent
impl Unpin for UiEvent
impl !UnwindSafe for UiEvent
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