Trait viz::FromRequest
source · pub trait FromRequest: Sized {
type Error: IntoResponse;
// Required method
fn extract(
req: &mut Request<Body>
) -> impl Future<Output = Result<Self, Self::Error>> + Send;
}
Expand description
An interface for extracting data from the HTTP Request
.
Required Associated Types§
sourcetype Error: IntoResponse
type Error: IntoResponse
The type returned in the event of a conversion error.
Required Methods§
Object Safety§
This trait is not object safe.