pub trait MessageHandler: Send + Sync {
// Required method
fn handle(
&self,
msg: Message,
) -> Pin<Box<dyn Future<Output = Result<(), KERIError>> + Send + '_>>;
}Required Methods§
fn handle( &self, msg: Message, ) -> Pin<Box<dyn Future<Output = Result<(), KERIError>> + Send + '_>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".