[][src]Enum mongodb::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

Methods

impl ErrorCode
[src]

Trait Implementations

impl Clone for ErrorCode
[src]

Performs copy-assignment from source. Read more

impl Copy for ErrorCode
[src]

impl Eq for ErrorCode
[src]

impl PartialEq<ErrorCode> for ErrorCode
[src]

This method tests for !=.

impl Display for ErrorCode
[src]

impl Debug for ErrorCode
[src]

impl Hash for ErrorCode
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for ErrorCode

impl Sync for ErrorCode

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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

impl<T> Same for T

Should always be Self