#[non_exhaustive]pub enum VariantDictionaryError {
InvalidVersion {
version: u16,
},
InvalidValueType {
value_type: u8,
},
MissingKey {
key: String,
},
Mistyped {
key: String,
},
NotTerminated,
UnexpectedEof,
}Expand description
Errors while parsing a VariantDictionary
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidVersion
An invalid VariantDictionary version was encountered.
InvalidValueType
An invalid value type was encountered while parsing a VariantDictionary.
MissingKey
A required key was missing from the VariantDictionary.
Mistyped
A value was found for the specified key, but it was of an unexpected type.
NotTerminated
The VariantDictionary did not end with a null byte (0x00) as expected.
UnexpectedEof
An unexpected end of file was encountered while parsing the VariantDictionary
Trait Implementations§
Source§impl Debug for VariantDictionaryError
impl Debug for VariantDictionaryError
Source§impl Display for VariantDictionaryError
impl Display for VariantDictionaryError
Source§impl Error for VariantDictionaryError
impl Error for VariantDictionaryError
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 From<VariantDictionaryError> for KdfConfigError
impl From<VariantDictionaryError> for KdfConfigError
Source§fn from(source: VariantDictionaryError) -> Self
fn from(source: VariantDictionaryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VariantDictionaryError
impl RefUnwindSafe for VariantDictionaryError
impl Send for VariantDictionaryError
impl Sync for VariantDictionaryError
impl Unpin for VariantDictionaryError
impl UnsafeUnpin for VariantDictionaryError
impl UnwindSafe for VariantDictionaryError
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