pub trait Event { // Required methods fn fire(self); fn wait(self) -> impl Future; }
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".