Enum ResourceErrorReason
#[non_exhaustive]pub enum ResourceErrorReason {
None,
NotFound,
Server,
Connection,
RateLimit,
Other,
Unknown(u32),
}Expand description
Resource error reason copied from event payloads and used in resource responses.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
§impl ResourceErrorReason
impl ResourceErrorReason
pub fn from_raw(raw: u32) -> ResourceErrorReason
pub fn raw_value(self) -> u32
Trait Implementations§
§impl Clone for ResourceErrorReason
impl Clone for ResourceErrorReason
§fn clone(&self) -> ResourceErrorReason
fn clone(&self) -> ResourceErrorReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ResourceErrorReason
impl Debug for ResourceErrorReason
§impl Hash for ResourceErrorReason
impl Hash for ResourceErrorReason
§impl PartialEq for ResourceErrorReason
impl PartialEq for ResourceErrorReason
impl Copy for ResourceErrorReason
impl Eq 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