Enum dittolive_ditto::error::ErrorKind
source · [−]pub enum ErrorKind {
Authentication,
Config,
Ffi,
Internal,
InvalidInput,
IO,
License,
NotActivated,
NonExtant,
ReleasedDittoInstance,
}
Variants
Authentication
Configured Authentication provider was not found or failed to authenticate
Config
Required configuration was missing or invalid
Ffi
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
Implementations
Trait Implementations
sourceimpl From<ErrorKind> for DittoError
impl From<ErrorKind> for DittoError
sourcefn from(kind: ErrorKind) -> DittoError
fn from(kind: ErrorKind) -> DittoError
Performs the conversion.
sourceimpl Ord for ErrorKind
impl Ord for ErrorKind
sourceimpl PartialOrd<ErrorKind> for ErrorKind
impl PartialOrd<ErrorKind> for ErrorKind
sourcefn partial_cmp(&self, other: &ErrorKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ErrorKind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ManuallyDropMut for T
impl<T> ManuallyDropMut for T
type Ret = ManuallyDrop<T>
pub fn manually_drop_mut(&'__ mut self) -> &'__ mut ManuallyDrop<T>
impl<T> To for T where
T: ?Sized,
impl<T> To for T where
T: ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more