Enum http_typed::Error
source · pub enum Error<Ser = Error> {
ClientError(Error),
SerializationError(Ser),
DeserializationError {
error: Error,
response_body: String,
},
InvalidStatusCode(u16, String),
}
Variants§
Trait Implementations§
source§impl<Ser> Error for Error<Ser>where
Self: Debug + Display,
impl<Ser> Error for Error<Ser>where Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Ser = Error> !RefUnwindSafe for Error<Ser>
impl<Ser> Send for Error<Ser>where Ser: Send,
impl<Ser> Sync for Error<Ser>where Ser: Sync,
impl<Ser> Unpin for Error<Ser>where Ser: Unpin,
impl<Ser = Error> !UnwindSafe for Error<Ser>
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