Skip to main content

EventHandler

Trait EventHandler 

Source
pub trait EventHandler<E>:
    Send
    + Sync
    + 'static {
    // Required method
    fn handle(&self, event: E) -> BoxFuture<'_, Result<()>>;
}
Expand description

Re-exported public API. Public Caelix extension trait EventHandler.

Required Methods§

Source

fn handle(&self, event: E) -> BoxFuture<'_, Result<()>>

Public Caelix API.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§