Trait barc::TryFrom

source ·
pub trait TryFrom<T>: Sized {
    type Err: 'static;

    fn try_from(t: T) -> Result<Self, Self::Err>;
}
Expand description

Similar to the TryFrom trait proposed but not yet available in std.

Required Associated Types

Required Methods

Implementations on Foreign Types

Attempt to convert Record to Dialog. This parses various meta header values to produce Dialog equivalents such as http::StatusCode and http::Method, which could fail, if the Record was not originally produced from a Dialog or was otherwise modified in an unsupported way.

Implementors