[][src]Enum mongodb_cwal::error::ErrorCode

pub enum ErrorCode {
    OK,
    InternalError,
    BadValue,
    OBSOLETE_DuplicateKey,
    NoSuchKey,
    GraphContainsCycle,
    HostUnreachable,
    HostNotFound,
    UnknownError,
    FailedToParse,
    CannotMutateObject,
    UserNotFound,
    UnsupportedFormat,
    Unauthorized,
    TypeMismatch,
    Overflow,
    InvalidLength,
    ProtocolError,
    AuthenticationFailed,
    CannotReuseObject,
    IllegalOperation,
    EmptyArrayOperation,
    InvalidBSON,
    AlreadyInitialized,
    LockTimeout,
    RemoteValidationError,
    NamespaceNotFound,
    IndexNotFound,
    PathNotViable,
    NonExistentPath,
    InvalidPath,
    RoleNotFound,
    RolesNotRelated,
    PrivilegeNotFound,
    CannotBackfillArray,
    UserModificationFailed,
    RemoteChangeDetected,
    FileRenameFailed,
    FileNotOpen,
    FileStreamFailed,
    ConflictingUpdateOperators,
    FileAlreadyOpen,
    LogWriteFailed,
    CursorNotFound,
    UserDataInconsistent,
    LockBusy,
    NoMatchingDocument,
    NamespaceExists,
    InvalidRoleModification,
    ExceededTimeLimit,
    ManualInterventionRequired,
    DollarPrefixedFieldName,
    InvalidIdField,
    NotSingleValueField,
    InvalidDBRef,
    EmptyFieldName,
    DottedFieldName,
    RoleModificationFailed,
    CommandNotFound,
    DatabaseNotFound,
    ShardKeyNotFound,
    OplogOperationUnsupported,
    StaleShardVersion,
    WriteConcernFailed,
    MultipleErrorsOccurred,
    ImmutableField,
    CannotCreateIndex,
    IndexAlreadyExists,
    AuthSchemaIncompatible,
    ShardNotFound,
    ReplicaSetNotFound,
    InvalidOptions,
    InvalidNamespace,
    NodeNotFound,
    WriteConcernLegacyOK,
    NoReplicationEnabled,
    OperationIncomplete,
    CommandResultSchemaViolation,
    UnknownReplWriteConcern,
    RoleDataInconsistent,
    NoWhereParseContext,
    NoProgressMade,
    RemoteResultsUnavailable,
    DuplicateKeyValue,
    IndexOptionsConflict,
    IndexKeySpecsConflict,
    CannotSplit,
    SplitFailed,
    NetworkTimeout,
    CallbackCanceled,
    ShutdownInProgress,
    SecondaryAheadOfPrimary,
    InvalidReplicaSetConfig,
    NotYetInitialized,
    NotSecondary,
    OperationFailed,
    NoProjectionFound,
    DBPathInUse,
    WriteConcernNotDefined,
    CannotSatisfyWriteConcern,
    OutdatedClient,
    IncompatibleAuditMetadata,
    NewReplicaSetConfigurationIncompatible,
    NodeNotElectable,
    IncompatibleShardingMetadata,
    DistributedClockSkewed,
    LockFailed,
    InconsistentReplicaSetNames,
    ConfigurationInProgress,
    CannotInitializeNodeWithData,
    NotExactValueField,
    WriteConflict,
    InitialSyncFailure,
    InitialSyncOplogSourceMissing,
    CommandNotSupported,
    DocTooLargeForCapped,
    ConflictingOperationInProgress,
    NamespaceNotSharded,
    InvalidSyncSource,
    OplogStartMissing,
    DocumentValidationFailure,
    OBSOLETE_ReadAfterOptimeTimeout,
    NotAReplicaSet,
    IncompatibleElectionProtocol,
    CommandFailed,
    RPCProtocolNegotiationFailed,
    UnrecoverableRollbackError,
    LockNotFound,
    LockStateChangeFailed,
    SymbolNotFound,
    RLPInitializationFailed,
    ConfigServersInconsistent,
    FailedToSatisfyReadPreference,
    XXX_TEMP_NAME_ReadCommittedCurrentlyUnavailable,
    StaleTerm,
    CappedPositionLost,
    IncompatibleShardingConfigVersion,
    RemoteOplogStale,
    JSInterpreterFailure,
    NotMaster,
    DuplicateKey,
    InterruptedAtShutdown,
    Interrupted,
    BackgroundOperationInProgressForDatabase,
    BackgroundOperationInProgressForNamespace,
    PrepareConfigsFailedCode,
    DatabaseDifferCase,
    ShardKeyTooBig,
    SendStaleConfig,
    NotMasterNoSlaveOkCode,
    NotMasterOrSecondaryCode,
    OutOfDiskSpace,
    KeyTooLong,
    MaxError,
}

Variants

OK
InternalError
BadValue
OBSOLETE_DuplicateKey
NoSuchKey
GraphContainsCycle
HostUnreachable
HostNotFound
UnknownError
FailedToParse
CannotMutateObject
UserNotFound
UnsupportedFormat
Unauthorized
TypeMismatch
Overflow
InvalidLength
ProtocolError
AuthenticationFailed
CannotReuseObject
IllegalOperation
EmptyArrayOperation
InvalidBSON
AlreadyInitialized
LockTimeout
RemoteValidationError
NamespaceNotFound
IndexNotFound
PathNotViable
NonExistentPath
InvalidPath
RoleNotFound
RolesNotRelated
PrivilegeNotFound
CannotBackfillArray
UserModificationFailed
RemoteChangeDetected
FileRenameFailed
FileNotOpen
FileStreamFailed
ConflictingUpdateOperators
FileAlreadyOpen
LogWriteFailed
CursorNotFound
UserDataInconsistent
LockBusy
NoMatchingDocument
NamespaceExists
InvalidRoleModification
ExceededTimeLimit
ManualInterventionRequired
DollarPrefixedFieldName
InvalidIdField
NotSingleValueField
InvalidDBRef
EmptyFieldName
DottedFieldName
RoleModificationFailed
CommandNotFound
DatabaseNotFound
ShardKeyNotFound
OplogOperationUnsupported
StaleShardVersion
WriteConcernFailed
MultipleErrorsOccurred
ImmutableField
CannotCreateIndex
IndexAlreadyExists
AuthSchemaIncompatible
ShardNotFound
ReplicaSetNotFound
InvalidOptions
InvalidNamespace
NodeNotFound
WriteConcernLegacyOK
NoReplicationEnabled
OperationIncomplete
CommandResultSchemaViolation
UnknownReplWriteConcern
RoleDataInconsistent
NoWhereParseContext
NoProgressMade
RemoteResultsUnavailable
DuplicateKeyValue
IndexOptionsConflict
IndexKeySpecsConflict
CannotSplit
SplitFailed
NetworkTimeout
CallbackCanceled
ShutdownInProgress
SecondaryAheadOfPrimary
InvalidReplicaSetConfig
NotYetInitialized
NotSecondary
OperationFailed
NoProjectionFound
DBPathInUse
WriteConcernNotDefined
CannotSatisfyWriteConcern
OutdatedClient
IncompatibleAuditMetadata
NewReplicaSetConfigurationIncompatible
NodeNotElectable
IncompatibleShardingMetadata
DistributedClockSkewed
LockFailed
InconsistentReplicaSetNames
ConfigurationInProgress
CannotInitializeNodeWithData
NotExactValueField
WriteConflict
InitialSyncFailure
InitialSyncOplogSourceMissing
CommandNotSupported
DocTooLargeForCapped
ConflictingOperationInProgress
NamespaceNotSharded
InvalidSyncSource
OplogStartMissing
DocumentValidationFailure
OBSOLETE_ReadAfterOptimeTimeout
NotAReplicaSet
IncompatibleElectionProtocol
CommandFailed
RPCProtocolNegotiationFailed
UnrecoverableRollbackError
LockNotFound
LockStateChangeFailed
SymbolNotFound
RLPInitializationFailed
ConfigServersInconsistent
FailedToSatisfyReadPreference
XXX_TEMP_NAME_ReadCommittedCurrentlyUnavailable
StaleTerm
CappedPositionLost
IncompatibleShardingConfigVersion
RemoteOplogStale
JSInterpreterFailure
NotMaster
DuplicateKey
InterruptedAtShutdown
Interrupted
BackgroundOperationInProgressForDatabase
BackgroundOperationInProgressForNamespace
PrepareConfigsFailedCode
DatabaseDifferCase
ShardKeyTooBig
SendStaleConfig
NotMasterNoSlaveOkCode
NotMasterOrSecondaryCode
OutOfDiskSpace
KeyTooLong
MaxError

Implementations

impl ErrorCode[src]

pub fn is_network_error(&self) -> bool[src]

pub fn is_interruption(&self) -> bool[src]

pub fn is_index_creation_error(&self) -> bool[src]

Trait Implementations

impl Clone for ErrorCode[src]

impl Copy for ErrorCode[src]

impl Debug for ErrorCode[src]

impl Display for ErrorCode[src]

impl Eq for ErrorCode[src]

impl Hash for ErrorCode[src]

impl PartialEq<ErrorCode> for ErrorCode[src]

impl StructuralEq for ErrorCode[src]

impl StructuralPartialEq for ErrorCode[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,