pub enum Error {
ContextSettingsMissing,
IoPath {
path: PathBuf,
context: &'static str,
source: Error,
},
OpenpgpTechnology(Error),
YamlDeserialize {
context: String,
source: Error,
},
YamlSerialize {
context: &'static str,
source: Error,
},
Validation {
context: String,
source: Report,
},
VoaCore(Error),
}Expand description
The error that can occur when using VOA configuration files.
Variants§
ContextSettingsMissing
There are no context settings.
IoPath
An I/O error occurred at a path.
Fields
OpenpgpTechnology(Error)
An OpenPGP technology error occurred.
YamlDeserialize
An error occurred while deserializing an object as a YAML string.
Fields
§
context: StringThe context in which the error occurred.
This is meant to complete the sentence “YAML deserialization error while “.
§
source: ErrorThe error source.
YamlSerialize
An error occurred while serializing an object as a YAML string.
Fields
§
context: &'static strThe context in which the error occurred.
This is meant to complete the sentence “YAML serialization error while “.
§
source: ErrorThe error source.
Validation
A garde validation error occurred.
Fields
§
context: StringThe context in which the error occurred.
This is meant to complete the sentence “Validation error while “.
§
source: ReportThe error source.
VoaCore(Error)
A voa_core::Error occurred.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more