[][src]Enum custom_codes::DbOps

pub enum DbOps {
    Inserted,
    Unchanged,
    Skipped,
    AlreadyExists,
    Modified,
    Deleted,
    KeyNotFound,
    NotExecuted,
    QueryConflictError,
    Empty,
    Queued,
    DeQueued,
    CompactionTrue,
    CompactionFalse,
    ConnRefused,
    PortAddrInUse,
    DriverError,
    RuntimeError,
    EncounteredErrors(String),
    DbPermissionDenied,
    ReadDenied,
    WriteDenied,
    DocReadDenied,
    DocWriteDenied,
    FieldReadDenied,
    FieldWriteDenied,
    ClusterOnline,
    ClusterOffline,
    ClusterSynced,
    ClusterNodeAdded,
    ConfigUpdated,
    ClusterNodeDropped,
    Logged,
    NotLogged(String),
}

Custom Response Codes Using Enums For Efficient Comparison

Variants

Inserted

A Write is unsuccessful

Unchanged

A Change is successful

Skipped

A Command is skipped since the document does not exist

AlreadyExists

Document already exists

Modified

Document has been updated

Deleted

An Document has been deleted

KeyNotFound

Key Not Found in Database, Field or Document depending on query

NotExecuted

A Command or Query Has Not Been Executed

QueryConflictError

Two or more queries are not supposed to be used command eg. using get and list together

Empty

Database is empty

Queued

The command has been added to a queue

DeQueued

Command has been removed from queue

CompactionTrue

Log compaction successfull

CompactionFalse

Log compaction unsuccessfull

ConnRefused

Connection to a database is not available

PortAddrInUse

Port is in use

DriverError

Driver to the database has an error

RuntimeError

An error occured when trying to execute a command at database level

EncounteredErrors(String)

Encountered Errors When Trying to connect to a database

DbPermissionDenied

No Access to the DB is allowed for this user or process

ReadDenied

Read Access to database is Denied

WriteDenied

Write Access to database is Denied

DocReadDenied

Access to a certain Table or Denied is denied

DocWriteDenied

Write to a document is denied

FieldReadDenied

Access to a field is denied

FieldWriteDenied

Writing to a Field is denied

ClusterOnline

A cluster in online and ready to receive commands

ClusterOffline

A cluster is offline

ClusterSynced

Cluster details synced across all nodes

ClusterNodeAdded

Added a node to the cluster

ConfigUpdated

Updated configuration to the cluster

ClusterNodeDropped

A node has been permanently removed

Logged

The details have been inserted to the specified logs

NotLogged(String)

The details have not been logged

Trait Implementations

impl PartialEq<DbOps> for DbOps[src]

impl Clone for DbOps[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for DbOps[src]

impl Debug for DbOps[src]

impl Serialize for DbOps[src]

impl<'de> Deserialize<'de> for DbOps[src]

Auto Trait Implementations

impl Unpin for DbOps

impl Sync for DbOps

impl Send for DbOps

impl RefUnwindSafe for DbOps

impl UnwindSafe for DbOps

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]