pub trait Handler {
type Input;
type Output;
type Error;
// Required method
fn handle(&self, input: &Self::Input) -> Result<Self::Output, Self::Error>;
}Expand description
Handles a dispatched input.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".