Skip to main content

TryIntoHyperiumHttp

Trait TryIntoHyperiumHttp 

pub trait TryIntoHyperiumHttp: Sealed {
    type Output;
    type Error;

    // Required method
    fn try_into_hyperium_http(self) -> Result<Self::Output, Self::Error>;
}
Available on crate features http and std only.
Expand description

Fallibly convert a rama-http-types value into its hyperium http-crate equivalent. Sealed; the implemented set is fixed by this crate.

Required Associated Types§

type Output

The hyperium http type produced.

type Error

The conversion error.

Required Methods§

fn try_into_hyperium_http(self) -> Result<Self::Output, Self::Error>

Convert self into its hyperium http equivalent.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl TryIntoHyperiumHttp for HeaderMap

§

type Output = HeaderMap

§

type Error = Error

§

impl TryIntoHyperiumHttp for Method

§

type Output = Method

§

type Error = Error

§

impl TryIntoHyperiumHttp for rama::http::request::Parts

§

type Output = Parts

§

type Error = Error

§

impl TryIntoHyperiumHttp for rama::http::response::Parts

§

type Output = Parts

§

type Error = Error

§

impl TryIntoHyperiumHttp for StatusCode

§

type Output = StatusCode

§

type Error = Error

§

impl TryIntoHyperiumHttp for Uri

§

type Output = Uri

§

type Error = Error

§

impl TryIntoHyperiumHttp for Version

§

type Output = Version

§

type Error = Error

§

impl<T> TryIntoHyperiumHttp for Request<T>

§

type Output = Request<T>

§

type Error = Error

§

impl<T> TryIntoHyperiumHttp for Response<T>

§

type Output = Response<T>

§

type Error = Error