pub trait UseEventHandler: Sealed {
// Required methods
fn use_event_handler<F>(
&mut self,
scope: EventScope,
priority: EventPriority,
f: F,
)
where F: FnMut(Event) -> EventResult + 'static;
fn use_event_handler_with_options<F>(
&mut self,
scope: EventScope,
priority: EventPriority,
options: EventOptions,
f: F,
)
where F: FnMut(Event) -> EventResult + 'static;
}Required Methods§
fn use_event_handler<F>( &mut self, scope: EventScope, priority: EventPriority, f: F, )
fn use_event_handler_with_options<F>( &mut self, scope: EventScope, priority: EventPriority, options: EventOptions, f: F, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".