#[non_exhaustive]pub enum DaemonConfigError {
Toml(String),
BadEnvValue(&'static str, String),
BelowMinimum {
key: &'static str,
value: UpDuration,
min: UpDuration,
},
InvalidEnvironment(String),
}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.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
InvalidEnvironment(String)
[daemon] environment is crate::secrets::ALL_ENVIRONMENTS, the
secrets store’s every-environment slot, or falls outside the grammar
crate::secrets keys and environment names share. Carries the
value as written.
Trait Implementations§
Source§impl Clone for DaemonConfigError
impl Clone for DaemonConfigError
Source§fn clone(&self) -> DaemonConfigError
fn clone(&self) -> DaemonConfigError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
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.