Skip to main content

TryIntoHyperiumHttp

Trait TryIntoHyperiumHttp 

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

    // Required method
    fn try_into_hyperium_http(self) -> Result<Self::Output, Self::Error>;
}
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§

Source

type Output

The hyperium http type produced.

Source

type Error

The conversion error.

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl TryIntoHyperiumHttp for HeaderMap

Source§

impl TryIntoHyperiumHttp for Method

Source§

impl TryIntoHyperiumHttp for Parts

Source§

impl TryIntoHyperiumHttp for Parts

Source§

impl TryIntoHyperiumHttp for StatusCode

Source§

impl TryIntoHyperiumHttp for Uri

Source§

impl TryIntoHyperiumHttp for Version

Source§

impl<T> TryIntoHyperiumHttp for Request<T>

Source§

impl<T> TryIntoHyperiumHttp for Response<T>

Implementors§