pub trait Handler: Send + Sync {
// Required method
fn handle(&self, req: Inbound) -> Option<Answer>;
}Expand description
The host’s answering surface. Implemented by the embedder; None anywhere
means “we did not advertise that capability”, and the request is refused.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".