Trait zng::task::http::TryHeaderName
source · pub trait TryHeaderName {
// Required method
fn try_header_name(self) -> Result<HeaderName, Error>;
}
Expand description
Marker trait for types that try-to-convert to header::HeaderName
.
All types T
that match header::HeaderName: TryFrom<T>, <header::HeaderName as TryFrom<T>>::Error: Into<isahc::http::Error>
implement this trait.
Required Methods§
sourcefn try_header_name(self) -> Result<HeaderName, Error>
fn try_header_name(self) -> Result<HeaderName, Error>
Tries to convert self
into Body
.