pub trait FromRequest<Input>: Sized {
type Error: IntoResponse;
const BUFFERED: bool = false;
// Required method
async fn from_request(input: Input) -> Result<Self, Self::Error>;
}Provided Associated Constants§
Required Associated Types§
type Error: IntoResponse
Required Methods§
async fn from_request(input: Input) -> Result<Self, Self::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".