Enum dittolive_ditto::error::ErrorKind
source · pub enum ErrorKind {
Authentication,
Config,
FfiLegacy,
Internal,
InvalidInput,
IO,
License,
NotActivated,
NonExtant,
ReleasedDittoInstance,
}
Expand description
General kind of an error
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
Implementations§
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 Ord for ErrorKind
impl Ord for ErrorKind
source§impl PartialEq<ErrorKind> for ErrorKind
impl PartialEq<ErrorKind> for ErrorKind
source§impl PartialOrd<ErrorKind> for ErrorKind
impl PartialOrd<ErrorKind> for ErrorKind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralEq 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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more