Skip to main content

Event

Trait Event 

Source
pub trait Event: Send + Sync {
    // Required method
    fn name(&self) -> &'static str;
}
Expand description

Synchronous application or infrastructure event.

Required Methods§

Source

fn name(&self) -> &'static str

Stable event name used for subscriber matching (for example cart.updated).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§