Expand description
Similar to the TryFrom
trait proposed but not yet available in std
.
Required Associated Types
Required Methods
Implementations on Foreign Types
sourceimpl TryFrom<Record> for Dialog
impl TryFrom<Record> for Dialog
sourcefn try_from(rec: Record) -> Result<Self, Self::Err>
fn try_from(rec: Record) -> Result<Self, Self::Err>
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.