pub trait FromRequest<S>: Sized {
// Required method
fn from_request(req: &Request, state: &S) -> Result<Self, Rejection>;
}Expand description
Types that can be extracted from a navigation, used as arguments of hooks and loads.
Extraction is synchronous and runs before the handler’s future is created. What an extractor
reads from the Request (path, query, params) decides when the load reruns.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".