[−][src]Enum mongodb::error::ErrorCode
Variants
OK
InternalError
BadValue
OBSOLETE_DuplicateKey
NoSuchKey
GraphContainsCycle
HostUnreachable
HostNotFound
UnknownError
FailedToParse
CannotMutateObject
UserNotFound
UnsupportedFormat
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
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
StaleTerm
CappedPositionLost
IncompatibleShardingConfigVersion
RemoteOplogStale
JSInterpreterFailure
NotMaster
DuplicateKey
InterruptedAtShutdown
Interrupted
BackgroundOperationInProgressForDatabase
BackgroundOperationInProgressForNamespace
PrepareConfigsFailedCode
DatabaseDifferCase
ShardKeyTooBig
SendStaleConfig
NotMasterNoSlaveOkCode
NotMasterOrSecondaryCode
OutOfDiskSpace
KeyTooLong
MaxError
Methods
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 Eq for ErrorCode
[src]
impl Clone for ErrorCode
[src]
impl PartialEq<ErrorCode> for ErrorCode
[src]
impl Copy for ErrorCode
[src]
impl Hash for ErrorCode
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Display for ErrorCode
[src]
impl Debug for ErrorCode
[src]
Auto Trait Implementations
impl Unpin for ErrorCode
impl Sync for ErrorCode
impl Send for ErrorCode
impl UnwindSafe for ErrorCode
impl RefUnwindSafe for ErrorCode
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self