[−][src]Enum bson::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)
EndOfStream
InvalidType(String)
InvalidLength(usize, String)
DuplicatedField(&'static str)
UnknownVariant(String)
InvalidValue(String)
InvalidTimestamp(i64)
AmbiguousTimestamp(i64)
Unknown(String)
Trait Implementations
impl From<Error> for DecoderError
[src]
fn from(err: Error) -> DecoderError
[src]
impl From<FromUtf8Error> for DecoderError
[src]
fn from(err: FromUtf8Error) -> DecoderError
[src]
impl Debug for DecoderError
[src]
impl Display for DecoderError
[src]
impl Error for DecoderError
[src]
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
[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]
fn custom<T: Display>(msg: T) -> DecoderError
[src]
fn invalid_type(_unexp: Unexpected, exp: &dyn Expected) -> DecoderError
[src]
fn invalid_value(_unexp: Unexpected, exp: &dyn Expected) -> DecoderError
[src]
fn invalid_length(len: usize, exp: &dyn Expected) -> DecoderError
[src]
fn unknown_variant(
variant: &str,
_expected: &'static [&'static str]
) -> DecoderError
[src]
variant: &str,
_expected: &'static [&'static str]
) -> DecoderError
fn unknown_field(
field: &str,
_expected: &'static [&'static str]
) -> DecoderError
[src]
field: &str,
_expected: &'static [&'static str]
) -> DecoderError
fn missing_field(field: &'static str) -> DecoderError
[src]
fn duplicate_field(field: &'static str) -> DecoderError
[src]
Auto Trait Implementations
impl Send for DecoderError
impl Sync for DecoderError
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
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]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
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]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,