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 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: Into<String>>(msg: T) -> EncoderError
Raised when there is a general error when serializing a type.
fn invalid_value(msg: &str) -> Self
Raised when a Serialize was passed an incorrect value.