Trait http::HttpTryFrom [−][src]
Private trait for the http
crate to have generic methods with fallible
conversions.
This trait is similar to the TryFrom
trait proposed in the standard
library, except this is specialized for the http
crate and isn't intended
for general consumption.
This trait cannot be implemented types outside of the http
crate, and is
only intended for use as a generic bound on methods in the http
crate.
Associated Types
Implementors
impl<'a> HttpTryFrom<&'a str> for HeaderName type Error = InvalidHeaderName;
impl<'a> HttpTryFrom<&'a [u8]> for HeaderName type Error = InvalidHeaderName;
impl HttpTryFrom<Bytes> for HeaderName type Error = InvalidHeaderNameBytes;
impl HttpTryFrom<u16> for HeaderValue type Error = Never;
impl HttpTryFrom<i16> for HeaderValue type Error = Never;
impl HttpTryFrom<u32> for HeaderValue type Error = Never;
impl HttpTryFrom<i32> for HeaderValue type Error = Never;
impl HttpTryFrom<u64> for HeaderValue type Error = Never;
impl HttpTryFrom<i64> for HeaderValue type Error = Never;
impl HttpTryFrom<usize> for HeaderValue type Error = Never;
impl HttpTryFrom<isize> for HeaderValue type Error = Never;
impl<'a> HttpTryFrom<&'a str> for HeaderValue type Error = InvalidHeaderValue;
impl<'a> HttpTryFrom<&'a [u8]> for HeaderValue type Error = InvalidHeaderValue;
impl HttpTryFrom<Bytes> for HeaderValue type Error = InvalidHeaderValueBytes;
impl HttpTryFrom<HeaderName> for HeaderValue type Error = InvalidHeaderValue;
impl<'a> HttpTryFrom<&'a [u8]> for Method type Error = InvalidMethod;
impl<'a> HttpTryFrom<&'a str> for Method type Error = InvalidMethod;
impl<'a> HttpTryFrom<&'a [u8]> for StatusCode type Error = InvalidStatusCode;
impl<'a> HttpTryFrom<&'a str> for StatusCode type Error = InvalidStatusCode;
impl HttpTryFrom<u16> for StatusCode type Error = InvalidStatusCode;
impl<'a> HttpTryFrom<&'a str> for Uri type Error = InvalidUri;
impl<'a> HttpTryFrom<&'a String> for Uri type Error = InvalidUri;
impl HttpTryFrom<String> for Uri type Error = InvalidUriBytes;
impl HttpTryFrom<Bytes> for Uri type Error = InvalidUriBytes;
impl HttpTryFrom<Parts> for Uri type Error = InvalidUriParts;
impl<'a> HttpTryFrom<&'a Uri> for Uri type Error = Error;
impl HttpTryFrom<Uri> for Uri type Error = Error;
impl HttpTryFrom<Method> for Method type Error = Error;
impl HttpTryFrom<StatusCode> for StatusCode type Error = Error;
impl HttpTryFrom<HeaderName> for HeaderName type Error = Error;
impl HttpTryFrom<HeaderValue> for HeaderValue type Error = Error;