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