Enum lead_oxide::errors::ApiError[][src]

pub enum ApiError {
    Client {
        status: u16,
        text: String,
    },
    Server {
        status: u16,
        text: String,
    },
    ApiKey,
    RateLimit,
    DailyLimit,
    NoProxy,
    Unknown,
}

Represents all possible errors returned by the API.

Some variants should be entirely prevented by this library like Client, while others are expected from heavy use like RateLimit or from being too strict on parameters like NoProxy.

Variants

Client

Fields of Client

status: u16text: String
Server

Fields of Server

status: u16text: String
ApiKey
RateLimit
DailyLimit
NoProxy
Unknown

Trait Implementations

impl Debug for ApiError[src]

impl Display for ApiError[src]

impl Error for ApiError[src]

impl From<String> for ApiError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.