pub enum BodyReadError {
TooLarge {
limit: usize,
},
Transport(Error),
Json(Error),
}Expand description
Why a bounded body read did not produce a complete body.
Variants§
TooLarge
The body is larger than the allowed limit.
Transport(Error)
The transport failed while reading the body.
Json(Error)
The body was read in full but is not valid JSON for the requested type.
Trait Implementations§
Source§impl Debug for BodyReadError
impl Debug for BodyReadError
Source§impl Display for BodyReadError
impl Display for BodyReadError
Source§impl Error for BodyReadError
impl Error for BodyReadError
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<Error> for BodyReadError
impl From<Error> for BodyReadError
Auto Trait Implementations§
impl !RefUnwindSafe for BodyReadError
impl !UnwindSafe for BodyReadError
impl Forget for BodyReadError
impl Freeze for BodyReadErrorwhere
*const Inner is !null: Freeze,
PhantomData<Inner>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
impl Move for BodyReadError
impl Send for BodyReadError
impl Sync for BodyReadError
impl Unpin for BodyReadError
impl UnsafeUnpin for BodyReadErrorwhere
*const Inner is !null: UnsafeUnpin,
PhantomData<Inner>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more