pub enum DatabaseError {
InvalidContract,
InvalidInput,
Unsupported,
Unavailable,
Conflict,
Busy,
MissingRecord,
AccessDenied,
CapacityExceeded,
StorageFailure,
}Expand description
Stable failure categories; an unavailable backend never appears as empty data.
Variants§
InvalidContract
InvalidInput
Unsupported
Conflict
Busy
A transient database lock prevented the operation from starting or committing.
MissingRecord
AccessDenied
CapacityExceeded
StorageFailure
Trait Implementations§
Source§impl Clone for DatabaseError
impl Clone for DatabaseError
Source§fn clone(&self) -> DatabaseError
fn clone(&self) -> DatabaseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DatabaseError
impl Debug for DatabaseError
Source§impl PartialEq for DatabaseError
impl PartialEq for DatabaseError
Source§fn eq(&self, other: &DatabaseError) -> bool
fn eq(&self, other: &DatabaseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DatabaseError
impl Eq for DatabaseError
impl StructuralPartialEq for DatabaseError
Auto Trait Implementations§
impl Freeze for DatabaseError
impl RefUnwindSafe for DatabaseError
impl Send for DatabaseError
impl Sync for DatabaseError
impl Unpin for DatabaseError
impl UnsafeUnpin for DatabaseError
impl UnwindSafe for DatabaseError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.