pub trait FromRequest<'a, M = ViaRequest>: Sized {
type Error: ResponseError;
// Required method
fn from_request(
head: &'a mut Head,
body: RequestBody,
) -> impl Future<Output = Result<Self, Self::Error>> + Send;
}Required Associated Types§
type Error: ResponseError
Required Methods§
fn from_request( head: &'a mut Head, body: RequestBody, ) -> impl Future<Output = Result<Self, Self::Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.