pub trait HttpProgramExt<This> {
// Required methods
fn program<Program>(&self, program: Program) -> Routes<'_, This>
where This: RouteAlg,
Program: HttpProgramAlg<This, Route = This::Route>;
fn compile_http<Program>(&self, program: Program) -> Program::Route
where Program: HttpProgramAlg<This>;
}Expand description
Compiles defunctionalized HTTP programs with an interpreter.
Required Methods§
Sourcefn program<Program>(&self, program: Program) -> Routes<'_, This>
fn program<Program>(&self, program: Program) -> Routes<'_, This>
Interprets a named program for further route composition.
Sourcefn compile_http<Program>(&self, program: Program) -> Program::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(&self, program: Program) -> Program::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<This> HttpProgramExt<This> for This
Compiles defunctionalized HTTP programs with an interpreter.