Enum monzo::Error [−][src]
pub enum Error {
Http(Error),
Serde(Error),
AuthExpired,
Client(StatusCode),
Server(StatusCode),
}
Expand description
Common error type for anything that can go wrong with this crate
Variants
Http(Error)
Tuple Fields
0: Error
HTTP Errors
Serde(Error)
Tuple Fields
0: Error
Serialisation/Deserialisation Errors
AuthExpired
Error returned when the access token has expired
Client(StatusCode)
Tuple Fields
0: StatusCode
API client errors
Server(StatusCode)
Tuple Fields
0: StatusCode
API server errors
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more