Enum toml::Error
[−]
[src]
pub enum Error {
NeedsKey,
NoValue,
InvalidMapKeyLocation,
InvalidMapKeyType,
Custom(String),
}Enumeration of errors which can occur while encoding a rust value into a TOML value.
Variants
NeedsKeyIndication that a key was needed when a value was emitted, but no key was previously emitted.
NoValueIndication that a key was emitted, but not value was emitted.
InvalidMapKeyLocationIndicates that a map key was attempted to be emitted at an invalid location.
InvalidMapKeyTypeIndicates that a type other than a string was attempted to be used as a map key type.
Custom(String)A custom error type was generated
Trait Implementations
impl Error for Error[src]
fn custom<T: Into<String>>(msg: T) -> Error
Raised when there is general error when deserializing a type.
fn invalid_value(msg: &str) -> Self
Raised when a Serialize was passed an incorrect value.