[−][src]Enum mongodb_h2co3::error::Error
The error type for MongoDB operations.
Variants
IoError(Error)
I/O operation errors of Read
, Write
, Seek
, and associated traits.
EncoderError(EncoderError)
A BSON struct could not be encoded.
DecoderError(DecoderError)
A BSON struct could not be decoded.
OIDError(Error)
An ObjectId could not be generated.
FromHexError(DecodeError)
A hexadecimal string could not be converted to bytes.
WriteError(WriteException)
A single-write operation failed.
BulkWriteError(BulkWriteException)
A bulk-write operation failed due to one or more lower-level write-related errors.
ArgumentError(String)
An invalid function or operational argument was provided.
OperationError(String)
A database operation failed to send or receive a reply.
ResponseError(String)
A database operation returned an invalid reply.
CursorNotFoundError
A cursor operation failed to return a cursor.
PoisonLockError
The application failed to secure a mutex due to a poisoned lock.
CodedError(ErrorCode)
A server error with a given code.
EventListenerError(Option<Box<Error>>)
The client was unable to emit the events to the listeners due to a poisoned lock;
all event listeners were dropped, so they will have to be registered again. If the
client is unable to emit a failure result, the error it failed to report is bundled
into the EventListenerError
.
MaliciousServerError(MaliciousServerErrorType)
The server that the client is attempting to authenticate to does not actually have the user's authentication information stored.
DefaultError(String)
A standard error with a string description; a more specific error should generally be used.
Trait Implementations
impl<'a> From<Error> for Error
[src]
impl<'a> From<Error> for Error
impl<'a> From<&'a str> for Error
[src]
impl<'a> From<&'a str> for Error
impl From<String> for Error
[src]
impl From<String> for Error
impl From<WriteException> for Error
[src]
impl From<WriteException> for Error
fn from(err: WriteException) -> Error
[src]
fn from(err: WriteException) -> Error
Performs the conversion.
impl From<BulkWriteException> for Error
[src]
impl From<BulkWriteException> for Error
fn from(err: BulkWriteException) -> Error
[src]
fn from(err: BulkWriteException) -> Error
Performs the conversion.
impl From<EncoderError> for Error
[src]
impl From<EncoderError> for Error
fn from(err: EncoderError) -> Error
[src]
fn from(err: EncoderError) -> Error
Performs the conversion.
impl From<DecoderError> for Error
[src]
impl From<DecoderError> for Error
fn from(err: DecoderError) -> Error
[src]
fn from(err: DecoderError) -> Error
Performs the conversion.
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<DecodeError> for Error
[src]
impl From<DecodeError> for Error
fn from(err: DecodeError) -> Error
[src]
fn from(err: DecodeError) -> Error
Performs the conversion.
impl From<Error> for Error
[src]
impl From<Error> for Error
impl<T> From<PoisonError<T>> for Error
[src]
impl<T> From<PoisonError<T>> for Error
fn from(_: PoisonError<T>) -> Error
[src]
fn from(_: PoisonError<T>) -> Error
Performs the conversion.
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&dyn Error>
[src]
fn cause(&self) -> Option<&dyn Error>
: replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
impl<T, U> TryInto for T where
U: TryFrom<T>,
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self