Enum winit_modular::event::UserEvent
source · [−]pub enum UserEvent {
Primitive(usize),
Box(Box<dyn UserEventTrait>),
}Expand description
A generic custom event which should support most use cases.
Since there is no shared event loop and anyone can create a proxy, the type of user events is dynamic.
Variants
Primitive(usize)
Box(Box<dyn UserEventTrait>)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for UserEvent
impl Send for UserEvent
impl !Sync for UserEvent
impl Unpin for UserEvent
impl !UnwindSafe for UserEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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