pub enum SlinkyError {
Show 14 variants
FailedFileOpen {
path: PathBuf,
description: String,
},
FailedWrite {
description: String,
contents: String,
},
FailedStringConversion {
description: String,
},
FailedDirCreate {
path: PathBuf,
description: String,
},
FailedYamlParsing {
description: String,
},
NullValueOnNonNull {
name: String,
},
EmptyValue {
name: String,
},
InvalidFieldCombo {
field1: String,
field2: String,
},
MissingRequiredField {
name: String,
},
MissingRequiredFieldCombo {
required: String,
other: String,
},
MissingAnyOfOptionalFields {
fields: String,
},
CustomOptionInPathNotProvided {
path: PathBuf,
custom_option: String,
},
MissingSectionForSegment {
field_name: Cow<'static, str>,
section: Cow<'static, str>,
segment: Cow<'static, str>,
},
MissingVramClassForSegment {
segment: Cow<'static, str>,
vram_class: Cow<'static, str>,
},
}Variants§
FailedFileOpen
FailedWrite
FailedStringConversion
FailedDirCreate
FailedYamlParsing
NullValueOnNonNull
EmptyValue
InvalidFieldCombo
MissingRequiredField
MissingRequiredFieldCombo
MissingAnyOfOptionalFields
CustomOptionInPathNotProvided
MissingSectionForSegment
MissingVramClassForSegment
Trait Implementations§
Source§impl Clone for SlinkyError
impl Clone for SlinkyError
Source§fn clone(&self) -> SlinkyError
fn clone(&self) -> SlinkyError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlinkyError
impl Debug for SlinkyError
Source§impl Display for SlinkyError
impl Display for SlinkyError
Source§impl Error for SlinkyError
impl Error for SlinkyError
1.30.0 · 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()
Source§impl Hash for SlinkyError
impl Hash for SlinkyError
Source§impl PartialEq for SlinkyError
impl PartialEq for SlinkyError
impl Eq for SlinkyError
impl StructuralPartialEq for SlinkyError
Auto Trait Implementations§
impl Freeze for SlinkyError
impl RefUnwindSafe for SlinkyError
impl Send for SlinkyError
impl Sync for SlinkyError
impl Unpin for SlinkyError
impl UnwindSafe for SlinkyError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.