pub enum ConfigPathSource {
Explicit,
Default,
}Expand description
Whether a TOML config path was chosen by the operator or
defaulted. Drives the “missing file” policy for config-file
lookups in the decdn node * subcommands: an explicit path that
isn’t there is almost certainly a typo and should error, while a
default path that isn’t there is normal (operator just hasn’t
made a config yet).
Variants§
Explicit
Path came from --config (subcommand) or the global
decdn --config flag.
Default
Path came from the built-in default (~/.decdn/node.toml).
Trait Implementations§
Source§impl Clone for ConfigPathSource
impl Clone for ConfigPathSource
impl Copy for ConfigPathSource
Auto Trait Implementations§
impl Freeze for ConfigPathSource
impl RefUnwindSafe for ConfigPathSource
impl Send for ConfigPathSource
impl Sync for ConfigPathSource
impl Unpin for ConfigPathSource
impl UnsafeUnpin for ConfigPathSource
impl UnwindSafe for ConfigPathSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more