[][src]Enum interfacer_http::ToContentError

pub enum ToContentError {
    UnsupportedContentType(Mime),
    UnsupportedEncoding(String),
    SerializeError {
        content_type: Mime,
        msg: String,
    },
    EncodeError {
        src: String,
        encoding: String,
        msg: String,
    },
}

Variants

UnsupportedContentType(Mime)UnsupportedEncoding(String)SerializeError

Fields of SerializeError

content_type: Mimemsg: String
EncodeError

Fields of EncodeError

src: Stringencoding: Stringmsg: String

Trait Implementations

impl From<Mime> for ToContentError[src]

impl From<String> for ToContentError[src]

impl From<(Mime, String)> for ToContentError[src]

impl From<(String, String, String)> for ToContentError[src]

impl Display for ToContentError[src]

impl Debug for ToContentError[src]

Auto Trait Implementations

Blanket Implementations

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.

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

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

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