#[non_exhaustive]#[repr(i32)]pub enum WvErrorKind {
MissingDependency = -5,
OperationCancelled = -4,
InvalidState = -3,
InvalidArgument = -2,
Unspecified = -1,
DuplicateEntry = 1,
NotFound = 2,
}Expand description
Error kinds enum for WvError
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.
MissingDependency = -5
Missing dependency
OperationCancelled = -4
Operation cancelled by the user
InvalidState = -3
Invalid state error
InvalidArgument = -2
Invalid argument error
Unspecified = -1
Unspecified error
DuplicateEntry = 1
Duplicate entry error
NotFound = 2
Not found error
Trait Implementations§
Source§impl Clone for WvErrorKind
impl Clone for WvErrorKind
Source§fn clone(&self) -> WvErrorKind
fn clone(&self) -> WvErrorKind
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 moreSource§impl Debug for WvErrorKind
impl Debug for WvErrorKind
Source§impl Hash for WvErrorKind
impl Hash for WvErrorKind
Source§impl Ord for WvErrorKind
impl Ord for WvErrorKind
Source§fn cmp(&self, other: &WvErrorKind) -> Ordering
fn cmp(&self, other: &WvErrorKind) -> Ordering
1.21.0 · 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
Source§impl PartialEq for WvErrorKind
impl PartialEq for WvErrorKind
Source§impl PartialOrd for WvErrorKind
impl PartialOrd for WvErrorKind
impl Copy for WvErrorKind
impl Eq for WvErrorKind
impl StructuralPartialEq for WvErrorKind
Auto Trait Implementations§
impl Freeze for WvErrorKind
impl RefUnwindSafe for WvErrorKind
impl Send for WvErrorKind
impl Sync for WvErrorKind
impl Unpin for WvErrorKind
impl UnwindSafe for WvErrorKind
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