1 2 3 4 5 6 7 8 9
#[cfg(feature = "alloc")] mod onceevent; #[cfg(feature = "alloc")] pub use onceevent::OnceEvent; pub trait Event { fn fire(self); fn wait(self) -> impl Future<Output = ()>; }