#[non_exhaustive]pub enum ConfigProblem {
Show 23 variants
Zero,
Negative,
NotFinite,
NotWholeNumber,
TooLarge {
max: u64,
},
NotSet,
NoneProvided,
NoParent,
NotSupported,
CannotTargetSink,
RemovesWholeName {
path: PathBuf,
},
NotAtStart,
Empty,
BlankOrControl,
PaddedWithBlank,
ContainsSeparator,
InnerDot,
DotEntry,
NotOneOf {
allowed: &'static [&'static str],
},
NotCreatable {
format: ExtractOnlyFormat,
},
TooLong {
max: usize,
got: usize,
},
ContainsNul,
ExcludePatternRefused {
pattern: String,
reason: ExcludeRefusal,
},
}Expand description
Why a configuration value or input was refused.
§Examples
use exarch_core::ConfigProblem;
assert_eq!(ConfigProblem::Zero.to_string(), "must not be zero");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Zero
A limit is zero.
Negative
A byte count is negative.
NotFinite
A number is NaN or infinite.
NotWholeNumber
A number has a fractional part.
TooLarge
A number is above the largest accepted value.
NotSet
A required input is missing.
NoneProvided
No input of this kind was given.
NoParent
The path has no parent directory.
NotSupported
The operation is not supported for this input.
CannotTargetSink
Atomic extraction cannot target a sink.
RemovesWholeName
The prefix would remove the whole name of this path.
NotAtStart
The writer is not at offset zero.
Empty
The entry is empty.
BlankOrControl
The entry has whitespace or control characters.
PaddedWithBlank
The entry starts or ends with whitespace or control characters.
ContainsSeparator
The entry contains a path separator.
InnerDot
The extension has an inner dot.
DotEntry
The entry is . or ...
NotOneOf
The value is not one of the allowed values.
NotCreatable
The format can be read but not created.
Fields
format: ExtractOnlyFormatThe extract-only format that was asked for.
TooLong
The entry is longer than the maximum.
ContainsNul
The entry contains a NUL byte.
ExcludePatternRefused
A creation exclude pattern the matcher does not support.
Fields
reason: ExcludeRefusalWhy the pattern is refused.
Trait Implementations§
Source§impl Clone for ConfigProblem
impl Clone for ConfigProblem
Source§impl Debug for ConfigProblem
impl Debug for ConfigProblem
Source§impl Display for ConfigProblem
impl Display for ConfigProblem
impl Eq for ConfigProblem
Source§impl PartialEq for ConfigProblem
impl PartialEq for ConfigProblem
impl StructuralPartialEq for ConfigProblem
Auto Trait Implementations§
impl Freeze for ConfigProblem
impl RefUnwindSafe for ConfigProblem
impl Send for ConfigProblem
impl Sync for ConfigProblem
impl Unpin for ConfigProblem
impl UnsafeUnpin for ConfigProblem
impl UnwindSafe for ConfigProblem
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
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
key and return true if they are equal.