[−][src]Enum licoricedev::errors::LichessError
Encompasses all possible errors emitted by the client
Variants
Error when the limit is reached
Request(Error)
Propagated errors from the reqwest crate
Errors for when server returns non 200 response
API(APIError)
If the API has a designated error message for the request
ParseJSON(Error)
(de)serializing and related errors
IO(Error)
Errors while reading buffers
Trait Implementations
impl Debug for LichessError
[src]
impl Display for LichessError
[src]
impl Error for LichessError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<APIError> for LichessError
[src]
impl From<Error> for LichessError
[src]
impl From<Error> for LichessError
[src]
impl From<Error> for LichessError
[src]
impl From<StatusCode> for LichessError
[src]
pub fn from(code: StatusCode) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for LichessError
[src]
impl Send for LichessError
[src]
impl Sync for LichessError
[src]
impl Unpin for LichessError
[src]
impl !UnwindSafe for LichessError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,