pub type YamlError = InfoError<Error>;
Expand description
A type alias for the ConfigError for the YamlConfig.
Aliased Type§
enum YamlError {
OutputCreateError {
path: PathBuf,
err: Error,
},
InputOpenError {
path: PathBuf,
err: Error,
},
InputReadError {
path: PathBuf,
err: Error,
},
StringSerializeError {
err: Error,
},
WriterSerializeError {
err: Error,
},
FileSerializeError {
path: PathBuf,
err: Error,
},
StringDeserializeError {
err: Error,
},
ReaderDeserializeError {
err: Error,
},
FileDeserializeError {
path: PathBuf,
err: Error,
},
}
Variants§
OutputCreateError
Failed to create the output file.
InputOpenError
Failed to open the input file.
InputReadError
Failed to read the input file.
StringSerializeError
Failed to serialize the config to a string.
WriterSerializeError
Failed to serialize the config to a given writer.
FileSerializeError
Failed to serialize the config to a given file.
StringDeserializeError
Failed to deserialize a string to the config.
ReaderDeserializeError
Failed to deserialize a reader to the config.
FileDeserializeError
Failed to deserialize a file to the config.
Trait Implementations
Source§impl<E: 'static + Error> Error for InfoError<E>
impl<E: 'static + Error> Error for InfoError<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()