Enum bson::EncoderError [−][src]
pub enum EncoderError { IoError(Error), InvalidMapKeyType(Bson), Unknown(String), UnsupportedUnsignedType, UnsignedTypesValueExceedsRange(u64), }
Possible errors that can arise during encoding.
Variants
IoError(Error)
InvalidMapKeyType(Bson)
Unknown(String)
UnsupportedUnsignedType
UnsignedTypesValueExceedsRange(u64)
Trait Implementations
impl Debug for EncoderError
[src]
impl Debug for EncoderError
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 From<Error> for EncoderError
[src]
impl From<Error> for EncoderError
fn from(err: Error) -> EncoderError
[src]
fn from(err: Error) -> EncoderError
Performs the conversion.
impl Display for EncoderError
[src]
impl Display for EncoderError
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 EncoderError
[src]
impl Error for EncoderError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Error for EncoderError
[src]
impl Error for EncoderError
fn custom<T: Display>(msg: T) -> EncoderError
[src]
fn custom<T: Display>(msg: T) -> EncoderError
Used when a [Serialize
] implementation encounters any error while serializing a type. Read more
Auto Trait Implementations
impl Send for EncoderError
impl Send for EncoderError
impl Sync for EncoderError
impl Sync for EncoderError