[−][src]Enum custom_codes::DbOps
Custom Response Codes Using Enums For Efficient Comparison
Examples
let foo = DbOps::Inserted; assert_eq!(foo, DbOps::Inserted);
Variants
A Repository has been created
The repository trying to be created already exists
An empty Repository with no databases
An repository is not available on disk
A Repository has been deleted
A checksum of the database shows a database is consistent
A checksum fo the database shows the database is not consistent
A checksum of the document is consistent
A checksum fo the document is not consistent
Database has been created
Database has been Found after a search
Database being inserted already exists in the repo
Database does not exist
Database is empty
A list containing Databases
A Database has neen modified
A database has been removed
Document has been created
Document has been inserted
Document has been Found after a search
Document is empty
List of Documents
Document being inserted already exists in the DB
Document does not exist
A Document has neen modified
Document has been removed
Field has been created
Field has been inserted
Field has been Found after a search
Field being inserted already exists in the DB
Field does not exist
Contents of a field in heap allocated bytes
List of fields in a document
A Field has neen modified
Field has been removed
A Write
to create a database is successfull
A Write
to a commit log was successful
A Write
to a commit log was unsuccessful
A Write
is successful
A Change
is successful
A Change
is unsuccessful
A Command
is skipped since the document does not exist
Document already exists
Document has been updated
A document value has been Swapped
replacing it with the new value provided
Especially useful for Key/Value stores
An Document has been deleted
Key Found in KV Store/Database, Field or Document depending on query
Key Not Found in Database, Field or Document depending on query
A Command or Query Has Not Been Executed
Two or more queries are not supposed to be used command eg. using get
and list
together
Database is empty
The command has been added to a queue
Command has been removed from queue
Log compaction successful
Log compaction unsuccessful
Connection to a database is not available
Port is in use
Driver to the database has an error
An error occured when trying to execute a command at database level
EncounteredErrors(String)
Encountered Errors When Trying to connect to a database
No permissions to complete the I/O operation
A cluster in online and ready to receive commands
A cluster is offline
Cluster details synced across all nodes
Added a node to the cluster
Updated configuration to the cluster
A node has been permanently removed
The details have been inserted to the specified logs
The details have not been logged
The Operation was interrupted and can be resumed
Status of an operation is not initialized
Trait Implementations
impl Clone for DbOps
[src]
impl Debug for DbOps
[src]
impl<'de> Deserialize<'de> for DbOps
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for DbOps
[src]
impl PartialEq<DbOps> for DbOps
[src]
impl Serialize for DbOps
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for DbOps
[src]
impl StructuralPartialEq for DbOps
[src]
Auto Trait Implementations
impl RefUnwindSafe for DbOps
impl Send for DbOps
impl Sync for DbOps
impl Unpin for DbOps
impl UnwindSafe for DbOps
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
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>,