pub enum HttpPostError<E: EncodeError> {
HttpError(Error),
EncodeFailed {
cause: E,
},
}Expand description
An error occurred while calling an HTTP Post method.
Variants§
HttpError(Error)
An error occurred while calling the host http function.
EncodeFailed
An error occurred while encoding the provided body.
Fields
§
cause: EThe underlying encoding error.
Trait Implementations§
Source§impl<E: Debug + EncodeError> Debug for HttpPostError<E>
impl<E: Debug + EncodeError> Debug for HttpPostError<E>
Source§impl<E: EncodeError> Display for HttpPostError<E>
impl<E: EncodeError> Display for HttpPostError<E>
Source§impl<E: EncodeError> Error for HttpPostError<E>
impl<E: EncodeError> Error for HttpPostError<E>
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<E: EncodeError> From<Error> for HttpPostError<E>
impl<E: EncodeError> From<Error> for HttpPostError<E>
Auto Trait Implementations§
impl<E> Freeze for HttpPostError<E>where
E: Freeze,
impl<E> RefUnwindSafe for HttpPostError<E>where
E: RefUnwindSafe,
impl<E> Send for HttpPostError<E>where
E: Send,
impl<E> Sync for HttpPostError<E>where
E: Sync,
impl<E> Unpin for HttpPostError<E>where
E: Unpin,
impl<E> UnwindSafe for HttpPostError<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