pub enum ViiperError {
Io(Error),
Protocol(ProblemJson),
Parse(Error),
UnexpectedResponse(String),
}Expand description
Errors that can occur when using the VIIPER client
Variants§
Io(Error)
Network or I/O errors
Protocol(ProblemJson)
RFC 7807 Problem+JSON response from server
Parse(Error)
Failed to parse JSON response
UnexpectedResponse(String)
Unexpected response format
Trait Implementations§
Source§impl Debug for ViiperError
impl Debug for ViiperError
Source§impl Display for ViiperError
impl Display for ViiperError
Source§impl Error for ViiperError
impl Error for ViiperError
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 ViiperError
impl From<Error> for ViiperError
Source§impl From<Error> for ViiperError
impl From<Error> for ViiperError
Source§impl From<ProblemJson> for ViiperError
impl From<ProblemJson> for ViiperError
Source§fn from(source: ProblemJson) -> Self
fn from(source: ProblemJson) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ViiperError
impl !RefUnwindSafe for ViiperError
impl Send for ViiperError
impl Sync for ViiperError
impl Unpin for ViiperError
impl !UnwindSafe for ViiperError
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