Skip to main content

UseEventHandler

Trait UseEventHandler 

Source
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§

Source

fn use_event_handler<F>( &mut self, scope: EventScope, priority: EventPriority, f: F, )
where F: FnMut(Event) -> EventResult + 'static,

Source

fn use_event_handler_with_options<F>( &mut self, scope: EventScope, priority: EventPriority, options: EventOptions, f: F, )
where F: FnMut(Event) -> EventResult + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§