pub trait IncomingRequestExt: IncomingRequest {
// Provided method
fn try_from_http_request(
request: Request<&[u8]>,
path_args: &[&str],
) -> Result<Self, FromHttpRequestError> { ... }
}Available on crate feature
api only.Expand description
Convenience functionality on top of IncomingRequest.
Provided Methods§
Sourcefn try_from_http_request(
request: Request<&[u8]>,
path_args: &[&str],
) -> Result<Self, FromHttpRequestError>
fn try_from_http_request( request: Request<&[u8]>, path_args: &[&str], ) -> Result<Self, FromHttpRequestError>
Tries to convert the given http::Request into this request type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".