#[non_exhaustive]pub enum DaemonConfigError {
Toml(String),
BadEnvValue(&'static str, String),
BelowMinimum {
key: &'static str,
value: UpDuration,
min: UpDuration,
},
}Expand description
Error type returned from DaemonConfig::load
#[non_exhaustive]: every [daemon] key this crate learns to validate
brings its own rejection reason, and deferred.md’s daemon-config flags
layer is a whole set of them at once (IR-20 — the same reasoning
NormalizeError states for the per-app
side).
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.
Toml(String)
shep.toml is invalid TOML (carries the parser message)
BadEnvValue(&'static str, String)
A SHEP_* env var held an unparseable value (var name, value)
BelowMinimum
A [daemon] duration is below the floor that keeps the daemon from
spinning. Carries the key the user actually set — the TOML key or
the environment variable, whichever supplied the winning value.
Trait Implementations§
Source§impl Clone for DaemonConfigError
impl Clone for DaemonConfigError
Source§fn clone(&self) -> DaemonConfigError
fn clone(&self) -> DaemonConfigError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DaemonConfigError
impl Debug for DaemonConfigError
Source§impl Display for DaemonConfigError
impl Display for DaemonConfigError
impl Eq for DaemonConfigError
Source§impl Error for DaemonConfigError
impl Error for DaemonConfigError
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 PartialEq for DaemonConfigError
impl PartialEq for DaemonConfigError
impl StructuralPartialEq for DaemonConfigError
Auto Trait Implementations§
impl Freeze for DaemonConfigError
impl RefUnwindSafe for DaemonConfigError
impl Send for DaemonConfigError
impl Sync for DaemonConfigError
impl Unpin for DaemonConfigError
impl UnsafeUnpin for DaemonConfigError
impl UnwindSafe for DaemonConfigError
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.