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