pub enum EncodeHttpError {
Codec(CodecError),
Http(Error),
}Expand description
Failure while building an outbound framework-neutral HTTP message.
Variants§
Codec(CodecError)
JSON or protocol encoding failed.
Http(Error)
The framework-neutral HTTP message builder rejected the URI or headers.
Trait Implementations§
Source§impl Debug for EncodeHttpError
impl Debug for EncodeHttpError
Source§impl Display for EncodeHttpError
impl Display for EncodeHttpError
Source§impl Error for EncodeHttpError
impl Error for EncodeHttpError
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<CodecError> for EncodeHttpError
impl From<CodecError> for EncodeHttpError
Source§fn from(value: CodecError) -> Self
fn from(value: CodecError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EncodeHttpError
impl !UnwindSafe for EncodeHttpError
impl Freeze for EncodeHttpError
impl Send for EncodeHttpError
impl Sync for EncodeHttpError
impl Unpin for EncodeHttpError
impl UnsafeUnpin for EncodeHttpError
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