pub trait EventReceiver<T>: Sendwhere
T: Send,{
// Required method
fn recv(
&mut self,
) -> impl Future<Output = Result<T, EventChannelError>> + Send;
}Expand description
Receiver side of an event channel.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.