Struct surf::DecodeError [−][src]
Expand description
An error occurred while decoding a response body to a string.
The error carries the encoding that was used to attempt to decode the body, and the raw byte contents of the body. This can be used to treat un-decodable bodies specially or to implement a fallback parsing strategy.
Fields
encoding: String
The name of the encoding that was used to try to decode the input.
data: Vec<u8>
The input data as bytes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more