pub trait IntoHandler<Req, Resp, Params> {
// Required method
fn into_handler(self, name: &'static str) -> Box<dyn Handler<Req, Resp>>;
}Expand description
Converts a compatible function into a boxed Handler.
Implemented for parameterized functions fn(Req, P0, P1, ...) -> Result<Resp, E>
where each P is a SystemParam and E: ToString. The error is
converted to String at the bridge boundary. Parallel to
IntoSystem.
Required Methods§
fn into_handler(self, name: &'static str) -> Box<dyn Handler<Req, Resp>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".