pub enum CCashError {
ReqwestError(Error),
ConnectionNotAvailable,
CouldNotParsePropertiesResponse,
ErrorResponse(CCashResponse),
Error(String),
}
Expand description
Enum for all errors that could occur when receiving a response from a
CCash
instance.
Variants§
ReqwestError(Error)
A reqwest error.
ConnectionNotAvailable
An error when unable to connect to the CCash
instance.
CouldNotParsePropertiesResponse
An error when the API was unable to parse the properties returned by the
CCash
instance. Could be caused by an incompatible CCash
instance
version.
ErrorResponse(CCashResponse)
An error returned by the CCash
instance itself.
Error(String)
An returned if ccash-rs
runs into an internal problem.
Trait Implementations§
Source§impl Debug for CCashError
impl Debug for CCashError
Source§impl Display for CCashError
impl Display for CCashError
Source§impl Error for CCashError
impl Error for CCashError
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<CCashResponse> for CCashError
impl From<CCashResponse> for CCashError
Source§fn from(r: CCashResponse) -> Self
fn from(r: CCashResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CCashError
impl !RefUnwindSafe for CCashError
impl Send for CCashError
impl Sync for CCashError
impl Unpin for CCashError
impl !UnwindSafe for CCashError
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