pub enum ErrorKind {
Show 13 variants
ReqError(Error),
InvalidHeaderError(InvalidHeaderValue),
IoError(Error),
ParseFloatError(ParseFloatError),
UrlParserError(ParseError),
Json(Error),
Tungstenite(Error),
TimestampError(SystemTimeError),
Msg(String),
BadRequest(String),
Unauthorized,
InternalServerError(String),
UnexpectedStatusCode(u16),
// some variants omitted
}
Expand description
The kind of an error.
Variants§
ReqError(Error)
InvalidHeaderError(InvalidHeaderValue)
IoError(Error)
ParseFloatError(ParseFloatError)
UrlParserError(ParseError)
Json(Error)
Tungstenite(Error)
TimestampError(SystemTimeError)
Msg(String)
A convenient variant for String.
BadRequest(String)
Represents an error that occurs when a request to the API returns a bad request status.
Represents an error that occurs when a request to the API returns an unauthorized status.
InternalServerError(String)
Represents an error that occurs when a request to the API returns an internal server error status.
UnexpectedStatusCode(u16)
Represents an error that occurs when a request to the API returns an unexpected status code.
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