#[non_exhaustive]pub enum ManifestError {
NotFound(PathBuf),
Io(String),
Parse(String),
Write(String),
Invalid(String),
}Expand description
Errors that can occur while loading or saving an evault.toml manifest.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotFound(PathBuf)
The manifest file does not exist at the supplied path.
Note: the path is the exact string the caller supplied and may disclose the user’s home directory if the resulting error is shipped off-host. Strip or redact before forwarding to remote sinks.
Io(String)
An I/O error occurred while reading or writing the manifest file (permission denied, disk failure, path is a directory, etc.).
Backend implementors MUST NOT include the OS error message
verbatim (which can echo paths or quoting). Carry only the
std::io::ErrorKind discriminant or a stable category label.
Parse(String)
The manifest contents could not be parsed.
Backend implementors MUST NOT include rendered manifest content,
the inline values of BindingSource::Inline bindings, or absolute
paths that disclose the user’s home directory in this string. Quote
only the structural error (expected token, line/column) — never the
surrounding source text.
Write(String)
The manifest could not be written back to disk.
Backend implementors MUST NOT include rendered manifest content, the inline values being serialized, or absolute paths that disclose the user’s home directory in this string.
Invalid(String)
The manifest parsed but violated a structural rule (e.g. duplicate var).
Backend implementors MUST NOT include rendered inline values or secret material in this string. Quote variable names by all means; never their values.
Trait Implementations§
Source§impl Debug for ManifestError
impl Debug for ManifestError
Source§impl Display for ManifestError
impl Display for ManifestError
Source§impl Error for ManifestError
impl Error for ManifestError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()