pub trait FromRequest<'a>: Sized {
// Required method
fn from_request(
req: &'a Request,
body: &mut Body,
) -> Result<Self, ChannelError>;
// Provided method
fn from_request_without_body(req: &'a Request) -> Result<Self, ChannelError> { ... }
}Required Methods§
fn from_request(req: &'a Request, body: &mut Body) -> Result<Self, ChannelError>
Provided Methods§
fn from_request_without_body(req: &'a Request) -> Result<Self, ChannelError>
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.