pub enum BodyConvertError {
BodyCollectionError,
StringUtf8Error,
JsonDeserializeError(Error),
}Expand description
General error for polling http_body::Body or converting the Bytes just polled.
Variants§
BodyCollectionError
Failed to collect the body
StringUtf8Error
The body is not a valid utf-8 string
JsonDeserializeError(Error)
Available on crate feature
json only.Failed to deserialize the json
Trait Implementations§
Source§impl Debug for BodyConvertError
impl Debug for BodyConvertError
Source§impl Display for BodyConvertError
impl Display for BodyConvertError
Source§impl Error for BodyConvertError
impl Error for BodyConvertError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BodyConvertError> for ClientError
Available on crate feature client only.
impl From<BodyConvertError> for ClientError
Available on crate feature
client only.Source§fn from(value: BodyConvertError) -> Self
fn from(value: BodyConvertError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BodyConvertError
impl !RefUnwindSafe for BodyConvertError
impl Send for BodyConvertError
impl Sync for BodyConvertError
impl Unpin for BodyConvertError
impl !UnwindSafe for BodyConvertError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more