pub enum CheckedDecodeError<E> {
ResponseWriter(ResponseWriterError),
ResponsePolicy(ResponsePolicyError),
ExpectedErrorStatus,
Decoder(E),
}Expand description
Failure while entering a checked success or provider-error decoder.
Variants§
ResponseWriter(ResponseWriterError)
The response writer did not contain one committed response.
ResponsePolicy(ResponsePolicyError)
Success status, body, media, or metadata policy rejected the response.
ExpectedErrorStatus
Provider-error decoding was requested for a non-error status.
Decoder(E)
The provider-owned decoder rejected the bounded response.
Trait Implementations§
Source§impl<E> Debug for CheckedDecodeError<E>
impl<E> Debug for CheckedDecodeError<E>
Source§impl<E> Display for CheckedDecodeError<E>
impl<E> Display for CheckedDecodeError<E>
Source§impl<E> Error for CheckedDecodeError<E>
impl<E> Error for CheckedDecodeError<E>
1.30.0 · 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()
Auto Trait Implementations§
impl<E> Freeze for CheckedDecodeError<E>where
E: Freeze,
impl<E> RefUnwindSafe for CheckedDecodeError<E>where
E: RefUnwindSafe,
impl<E> Send for CheckedDecodeError<E>where
E: Send,
impl<E> Sync for CheckedDecodeError<E>where
E: Sync,
impl<E> Unpin for CheckedDecodeError<E>where
E: Unpin,
impl<E> UnsafeUnpin for CheckedDecodeError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for CheckedDecodeError<E>where
E: UnwindSafe,
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