pub enum ResourceErrorReason {
Other,
NotFound,
Server,
Connection,
RateLimit,
Unknown(u32),
}Expand description
Why a resource request failed.
See mln_resource_error_reason in the
C API reference.
Variants§
Other
A reason that no other value names.
NotFound
Server
The server reported an error.
Connection
The server couldn’t be reached.
RateLimit
Unknown(u32)
Implementations§
Trait Implementations§
Source§impl Clone for ResourceErrorReason
impl Clone for ResourceErrorReason
Source§fn clone(&self) -> ResourceErrorReason
fn clone(&self) -> ResourceErrorReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourceErrorReason
Source§impl Debug for ResourceErrorReason
impl Debug for ResourceErrorReason
Source§impl Default for ResourceErrorReason
impl Default for ResourceErrorReason
impl Eq for ResourceErrorReason
Source§impl Hash for ResourceErrorReason
impl Hash for ResourceErrorReason
Source§impl PartialEq for ResourceErrorReason
impl PartialEq for ResourceErrorReason
impl StructuralPartialEq for ResourceErrorReason
Auto Trait Implementations§
impl Freeze for ResourceErrorReason
impl RefUnwindSafe for ResourceErrorReason
impl Send for ResourceErrorReason
impl Sync for ResourceErrorReason
impl Unpin for ResourceErrorReason
impl UnsafeUnpin for ResourceErrorReason
impl UnwindSafe for ResourceErrorReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more