pub trait Handler: Send + Sync {
// Required method
fn call(
&self,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + '_>>;
}Expand description
Handler trait for protocol-agnostic request handling
Handlers implement this trait to provide a unified interface that can be called from any protocol adapter.