pub enum ErrorKind {
Codec(Error),
Reqwest(Error),
Url(ParseError),
IO(Error),
Msg(String),
Fault {
code: StatusCode,
error: ClientError,
},
RateLimit {
reset: Duration,
},
// some variants omitted
}
Expand description
The kind of an error.
Variants§
Codec(Error)
Reqwest(Error)
Url(ParseError)
IO(Error)
Msg(String)
A convenient variant for String.
Fault
Client side error returned for faulty requests
RateLimit
Error kind returned when a credential’s rate limit has been exhausted. Wait for the reset duration before issuing more requests
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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