[−][src]Enum custom_codes::DbOps
Custom Response Codes Using Enums For Efficient Comparison
Variants
InsertedA Write is unsuccessful
UnchangedA Change is successful
SkippedA Command is skipped since the document does not exist
AlreadyExistsDocument already exists
ModifiedDocument has been updated
SwappedA document value has been Swapped replacing it with the new value provided
Especially useful for Key/Value stores
DeletedAn Document has been deleted
KeyFoundKey Found in KV Store/Database, Field or Document depending on query
KeyNotFoundKey Not Found in Database, Field or Document depending on query
NotExecutedA Command or Query Has Not Been Executed
QueryConflictErrorTwo or more queries are not supposed to be used command eg. using get and list together
EmptyDatabase is empty
QueuedThe command has been added to a queue
DeQueuedCommand has been removed from queue
CompactionTrueLog compaction successfull
CompactionFalseLog compaction unsuccessfull
ConnRefusedConnection to a database is not available
PortAddrInUsePort is in use
DriverErrorDriver to the database has an error
RuntimeErrorAn error occured when trying to execute a command at database level
EncounteredErrors(R)Encountered Errors When Trying to connect to a database
DbPermissionDeniedNo Access to the DB is allowed for this user or process
ReadDeniedRead Access to database is Denied
WriteDeniedWrite Access to database is Denied
DocReadDeniedAccess to a certain Table or Denied is denied
DocWriteDeniedWrite to a document is denied
FieldReadDeniedAccess to a field is denied
FieldWriteDeniedWriting to a Field is denied
ClusterOnlineA cluster in online and ready to receive commands
ClusterOfflineA cluster is offline
ClusterSyncedCluster details synced across all nodes
ClusterNodeAddedAdded a node to the cluster
ConfigUpdatedUpdated configuration to the cluster
ClusterNodeDroppedA node has been permanently removed
LoggedThe details have been inserted to the specified logs
NotLogged(R)The details have not been logged
UnspecifiedStatus of an operation is not initialized
Trait Implementations
impl<R: Clone> Clone for DbOps<R>[src]
impl<R: Eq> Eq for DbOps<R>[src]
impl<R: PartialEq> PartialEq<DbOps<R>> for DbOps<R>[src]
impl<R: Debug> Debug for DbOps<R>[src]
impl<R> Serialize for DbOps<R> where
R: Serialize, [src]
R: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de, R> Deserialize<'de> for DbOps<R> where
R: Deserialize<'de>, [src]
R: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<R> Send for DbOps<R> where
R: Send,
R: Send,
impl<R> Sync for DbOps<R> where
R: Sync,
R: Sync,
impl<R> Unpin for DbOps<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for DbOps<R> where
R: UnwindSafe,
R: UnwindSafe,
impl<R> RefUnwindSafe for DbOps<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,