zng::task::http

Trait TryMethod

source
pub trait TryMethod {
    // Required method
    fn try_method(self) -> Result<Method, Error>;
}
Expand description

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

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

Required Methods§

source

fn try_method(self) -> Result<Method, Error>

Tries to convert self into Method.

Implementors§

source§

impl<U> TryMethod for U
where Method: TryFrom<U>, <Method as TryFrom<U>>::Error: Into<Error>,