Enum mon::bson::encode::EncodeError
[−]
[src]
pub enum EncodeError { IoError(Error), InvalidMapKeyType(Bson), Unknown(String), UnsupportedUnsignedType, }
Variants
IoError(Error)
InvalidMapKeyType(Bson)
Unknown(String)
UnsupportedUnsignedType
Trait Implementations
impl Debug for EncodeError
[src]
impl From<Error> for EncodeError
[src]
fn from(err: Error) -> EncodeError
[src]
Performs the conversion.
impl Display for EncodeError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for EncodeError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl Error for EncodeError
[src]
fn custom<T: Display>(msg: T) -> EncodeError
[src]
Used when a [Serialize
] implementation encounters any error while serializing a type. Read more