zng_task::http

Trait TryUri

source
pub trait TryUri {
    // Required method
    fn try_uri(self) -> Result<Uri, Error>;
}
Expand description

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

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

Required Methods§

source

fn try_uri(self) -> Result<Uri, Error>

Tries to convert self into Uri.

Implementors§

source§

impl<U> TryUri for U
where Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,