zng::task::http

Trait TryBody

source
pub trait TryBody {
    // Required method
    fn try_body(self) -> Result<Body, Error>;
}
Expand description

Marker trait for types that try-to-convert to Body.

All types T that match isahc::AsyncBody: TryFrom<T>, <isahc::AsyncBody as TryFrom<T>>::Error: Into<isahc::http::Error> implement this trait.

Required Methods§

source

fn try_body(self) -> Result<Body, Error>

Tries to convert self into Body.

Implementors§

source§

impl<U> TryBody for U
where AsyncBody: TryFrom<U>, <AsyncBody as TryFrom<U>>::Error: Into<Error>,