pub enum ErrorKind {
Authentication,
Permission,
Network,
Offline,
RateLimited,
Storage,
ExternalService,
Validation,
Configuration,
Internal,
}Expand description
Stable, serialisable classification of a failure.
The frontend switches on this — never on an error message.
Variants§
Authentication
Permission
Network
Offline
RateLimited
Storage
ExternalService
Validation
Configuration
Internal
Implementations§
Source§impl ErrorKind
impl ErrorKind
Sourcepub fn is_retryable(self) -> bool
pub fn is_retryable(self) -> bool
Whether retrying the same operation later can plausibly succeed.
Sourcepub fn needs_user_action(self) -> bool
pub fn needs_user_action(self) -> bool
Whether the user has to act (re-authenticate, grant access, fix config).
Trait Implementations§
impl Copy for ErrorKind
Source§impl<'de> Deserialize<'de> for ErrorKind
impl<'de> Deserialize<'de> for ErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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