pub struct ErrorClass(/* private fields */);Expand description
Broad classification used for stable diagnostic policy.
Values are closed to the associated constants exposed by this crate. The catalog owns the class for every descriptor; error instances and domain facades cannot override it.
Implementations§
Source§impl ErrorClass
impl ErrorClass
Sourcepub const VALIDATION: Self
pub const VALIDATION: Self
Deterministic input or contract validation failure.
Sourcepub const AUTHENTICATION: Self
pub const AUTHENTICATION: Self
Authentication failure.
Sourcepub const AUTHORIZATION: Self
pub const AUTHORIZATION: Self
Authorization failure.
Sourcepub const UNAVAILABLE: Self
pub const UNAVAILABLE: Self
Temporarily unavailable service or resource.
Sourcepub const DATA_CORRUPTION: Self
pub const DATA_CORRUPTION: Self
Corrupted or irrecoverable data.
Sourcepub const UNSUPPORTED: Self
pub const UNSUPPORTED: Self
Unsupported operation or capability.
Trait Implementations§
Source§impl Clone for ErrorClass
impl Clone for ErrorClass
impl Copy for ErrorClass
Source§impl Debug for ErrorClass
impl Debug for ErrorClass
Source§impl Display for ErrorClass
impl Display for ErrorClass
impl Eq for ErrorClass
Source§impl Hash for ErrorClass
impl Hash for ErrorClass
Source§impl Ord for ErrorClass
impl Ord for ErrorClass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ErrorClass
impl PartialEq for ErrorClass
Source§impl PartialOrd for ErrorClass
impl PartialOrd for ErrorClass
impl StructuralPartialEq for ErrorClass
Auto Trait Implementations§
impl Freeze for ErrorClass
impl RefUnwindSafe for ErrorClass
impl Send for ErrorClass
impl Sync for ErrorClass
impl Unpin for ErrorClass
impl UnsafeUnpin for ErrorClass
impl UnwindSafe for ErrorClass
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