[−][src]Struct modio::Error
The Errors that may occur when using Modio
.
Implementations
impl Error
[src]
pub fn is_auth(&self) -> bool
[src]
Returns true if the API key/access token is incorrect, revoked, expired or the request needs a different authentication method.
pub fn is_builder(&self) -> bool
[src]
Returns true if the error is from a type Builder.
pub fn is_download(&self) -> bool
[src]
Returns true if the error is from a DownloadAction
.
pub fn is_ratelimited(&self) -> bool
[src]
Returns true if the rate limit associated with credentials has been exhausted.
pub fn is_status(&self) -> bool
[src]
Returns true if the error was generated from a response.
pub fn is_validation(&self) -> bool
[src]
Returns true if the error contains validation errors.
pub fn is_decode(&self) -> bool
[src]
Returns true if the error is related to serialization.
pub fn error_ref(&self) -> Option<u16>
[src]
Returns modio's error reference code.
See the Error Codes docs for more information.
pub fn status(&self) -> Option<StatusCode>
[src]
Returns status code if the error was generated from a response.
pub fn validation(&self) -> Option<(&String, &HashMap<String, String>)>
[src]
Returns validation message & errors from the response.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
[src]
impl Send for Error
[src]
impl Sync for Error
[src]
impl Unpin for Error
[src]
impl !UnwindSafe for Error
[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>,