[−][src]Enum narwhalol::error::ClientError
Custom error type for an api errors
Variants
BadRequest
Bad request
Unauthorized
Forbidden
Forbidden
DataNotFound
Data not found
MethodNotAllowed
Method is not allowwed
UnsupportedMediaType
Unsupported media type
RateLimitExceeded
This error is returned when you have exceeded your rate limit for an api.
Fields of RateLimitExceeded
limit: usize
InternalServerError
Internal server error
BadGateway
Bad gateway
This error is returned when the riot api servers are on maintenance. Please visit https://developer.riotgames.com/api-status/ for more information
GatewayTimeout
Gateway Timeout
UrlNotParsed
Internal url not parsed error
Other
Hyper error
Fields of Other
source: Error
NoToken
This error is returned when the user provides no token
Fields of NoToken
source: VarError
WrongToken
This error is returned when the user provides malformed token
Fields of WrongToken
token: String
Methods
impl ClientError
[src]
pub fn check_status(
region: Region,
code: u16
) -> impl Future<Output = Result<(), ClientError>>
[src]
region: Region,
code: u16
) -> impl Future<Output = Result<(), ClientError>>
Trait Implementations
impl Debug for ClientError
[src]
impl Display for ClientError
[src]
impl Error for ClientError where
Self: Debug + Display,
[src]
Self: Debug + Display,
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
impl ErrorCompat for ClientError
[src]
Auto Trait Implementations
impl Send for ClientError
impl Unpin for ClientError
impl Sync for ClientError
impl !UnwindSafe for ClientError
impl !RefUnwindSafe for ClientError
Blanket Implementations
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> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsErrorSource for T where
T: 'static + Error,
[src]
T: 'static + Error,