[−][src]Enum mongodb::DecoderError
Possible errors that can arise during decoding.
Variants
IoError(Error)FromUtf8Error(FromUtf8Error)UnrecognizedElementType(u8)InvalidArrayKey(usize, String)ExpectedField(&'static str)UnknownField(String)SyntaxError(String)EndOfStreamInvalidType(String)InvalidLength(usize, String)DuplicatedField(&'static str)UnknownVariant(String)InvalidValue(String)InvalidTimestamp(i64)AmbiguousTimestamp(i64)Unknown(String)Trait Implementations
impl Error for DecoderError[src]
impl Error for DecoderErrorfn description(&self) -> &str[src]
fn description(&self) -> &strfn cause(&self) -> Option<&dyn Error>[src]
fn cause(&self) -> Option<&dyn Error>fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0
[src]The lower-level source of this error, if any. Read more
impl Error for DecoderError[src]
impl Error for DecoderErrorfn custom<T>(msg: T) -> DecoderError where
T: Display, [src]
fn custom<T>(msg: T) -> DecoderError where
T: Display, fn invalid_type(_unexp: Unexpected, exp: &dyn Expected) -> DecoderError[src]
fn invalid_type(_unexp: Unexpected, exp: &dyn Expected) -> DecoderErrorfn invalid_value(_unexp: Unexpected, exp: &dyn Expected) -> DecoderError[src]
fn invalid_value(_unexp: Unexpected, exp: &dyn Expected) -> DecoderErrorfn invalid_length(len: usize, exp: &dyn Expected) -> DecoderError[src]
fn invalid_length(len: usize, exp: &dyn Expected) -> DecoderErrorfn unknown_variant(
variant: &str,
_expected: &'static [&'static str]
) -> DecoderError[src]
fn unknown_variant(
variant: &str,
_expected: &'static [&'static str]
) -> DecoderErrorfn unknown_field(
field: &str,
_expected: &'static [&'static str]
) -> DecoderError[src]
fn unknown_field(
field: &str,
_expected: &'static [&'static str]
) -> DecoderErrorfn missing_field(field: &'static str) -> DecoderError[src]
fn missing_field(field: &'static str) -> DecoderErrorfn duplicate_field(field: &'static str) -> DecoderError[src]
fn duplicate_field(field: &'static str) -> DecoderErrorimpl From<FromUtf8Error> for DecoderError[src]
impl From<FromUtf8Error> for DecoderErrorfn from(err: FromUtf8Error) -> DecoderError[src]
fn from(err: FromUtf8Error) -> DecoderErrorimpl From<Error> for DecoderError[src]
impl From<Error> for DecoderErrorfn from(err: Error) -> DecoderError[src]
fn from(err: Error) -> DecoderErrorimpl Display for DecoderError[src]
impl Display for DecoderErrorimpl Debug for DecoderError[src]
impl Debug for DecoderErrorimpl From<DecoderError> for Error[src]
impl From<DecoderError> for Errorfn from(err: DecoderError) -> Error[src]
fn from(err: DecoderError) -> ErrorAuto Trait Implementations
impl Send for DecoderError
impl Send for DecoderErrorimpl Sync for DecoderError
impl Sync for DecoderErrorBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
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>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, 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) -> TypeIdimpl<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
🔬 This is a nightly-only experimental API. (
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>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 Timpl<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 Ttype Output = T
Should always be Self