pub trait EventSource<T> {
// Required method
fn next(&mut self) -> impl Future<Output = Option<T>> + Send;
}Expand description
Anything that yields events asynchronously (a postcard-rpc subscription,
an mpsc receiver, an RTT line stream…). None means the source closed.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".