Enum dittolive_ditto::error::ErrorKind
source · #[non_exhaustive]pub enum ErrorKind {
Authentication,
Config,
FfiLegacy,
Internal,
InvalidInput,
IO,
License,
NotActivated,
NonExtant,
ReleasedDittoInstance,
CoreApi(CoreApiErrorKind),
}
Expand description
General kind of an error
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.
Authentication
Configured Authentication provider was not found or failed to authenticate
Config
Required configuration was missing or invalid
FfiLegacy
Error originated in the FFI layer
Internal
An error occurred in Ditto’s internals
InvalidInput
Provided parameters or data are not valid
IO
Error with the local file system or networking
License
The Ditto license is missing, expired, or otherwise invalid
NotActivated
Ditto sync was started without a valid license
NonExtant
The requested resource no longer exists (i.e. lost or destroyed) Used typically for empty query results
ReleasedDittoInstance
The requested Ditto instance has already been dropped
CoreApi(CoreApiErrorKind)
An error occurred with one of the core APIs of Ditto.
Trait Implementations§
source§impl From<ErrorKind> for DittoError
impl From<ErrorKind> for DittoError
source§fn from(kind: ErrorKind) -> DittoError
fn from(kind: ErrorKind) -> DittoError
Converts to this type from the input type.
source§impl PartialEq for ErrorKind
impl PartialEq for ErrorKind
impl Copy for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin 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