#[non_exhaustive]pub enum ErrorKind {
InvalidArgument,
NotFound,
AlreadyExists,
Io,
Storage,
Migration,
Conflict,
AmbiguousResolution,
Fingerprint,
Unsupported,
Internal,
}Expand description
Stable categories shared by core services and external adapters.
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.
InvalidArgument
A caller supplied invalid input.
NotFound
A requested domain object does not exist.
AlreadyExists
An object or relationship already exists.
Io
An operating-system I/O operation failed.
Storage
A persistence backend failed.
Migration
A schema migration failed.
Conflict
Current state conflicts with the requested operation.
AmbiguousResolution
Media resolution produced multiple credible candidates.
Fingerprint
Media fingerprint calculation or validation failed.
Unsupported
The requested operation is not supported.
Internal
An internal domain invariant was violated.
Trait Implementations§
impl Copy for ErrorKind
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