[][src]Enum aahc::error::BadContentLength

pub enum BadContentLength {
    NotUtf8(Utf8Error),
    NotU64(<u64 as FromStr>::Err),
}

The ways in which a received Content-Type header can be invalid.

Variants

NotUtf8(Utf8Error)

The header is not valid UTF-8.

NotU64(<u64 as FromStr>::Err)

The header is not a nonnegative integer or does not fit into a u64.

Trait Implementations

impl Debug for BadContentLength[src]

impl Display for BadContentLength[src]

impl Error for BadContentLength[src]

impl From<BadContentLength> for InvalidData[src]

impl From<BadContentLength> for Error[src]

impl PartialEq<BadContentLength> for BadContentLength[src]

impl StructuralPartialEq for BadContentLength[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.