Skip to main content

IncomingResponseExt

Trait IncomingResponseExt 

Source
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§

Source

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".

Implementors§