Skip to main content

Event

Trait Event 

Source
pub trait Event {
    // Required methods
    fn fire(self);
    fn wait(self) -> impl Future<Output = ()>;
}

Required Methods§

Source

fn fire(self)

Source

fn wait(self) -> impl Future<Output = ()>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<D: Deref<Target = OnceEvent>> Event for D