[][src]Trait interfacer_http::ToContent

pub trait ToContent {
    type Err: Into<ToContentError>;
    fn to_content(&self, content_type: &Mime) -> Result<Vec<u8>, Self::Err>;

    fn to_content_map_err(
        &self,
        content_type: &Mime
    ) -> Result<Vec<u8>, ToContentError> { ... } }

Associated Types

Loading content...

Required methods

fn to_content(&self, content_type: &Mime) -> Result<Vec<u8>, Self::Err>

Loading content...

Provided methods

fn to_content_map_err(
    &self,
    content_type: &Mime
) -> Result<Vec<u8>, ToContentError>

Loading content...

Implementations on Foreign Types

impl ToContent for ()[src]

type Err = ToContentError

Loading content...

Implementors

Loading content...