pub trait TypedProcedure: Route {
type Args: Surrogated;
type Output: Surrogated;
}Available on crate feature
router only.Expand description
A procedure’s argument and return types for calls in runtime expressions.
Procedures implement Route to handle calls over HTTP. Register one
with RouterBuilder::route.
Required Associated Types§
Sourcetype Args: Surrogated
type Args: Surrogated
The arguments, as a tuple in declaration order.
Sourcetype Output: Surrogated
type Output: Surrogated
The value a successful call resolves to.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".