pub trait ReceiverHandler {
// Required methods
fn handle_data(&self, data: &[u8]) -> impl Future<Output = ()> + Send;
fn new() -> Self;
}
Expand description
A trait that can be implemented and then passed to the
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.