Enum humphrey_server::config::config::ConfigSource
source · pub enum ConfigSource {
Argument,
EnvironmentVariable,
CurrentDirectory,
Default,
}
Expand description
Represents the source of the configuration.
Variants§
Argument
The configuration was found at a path specified in a command-line argument.
EnvironmentVariable
The configuration was found at a path specified in the environment variable HUMPHREY_CONF
.
CurrentDirectory
The configuration was found in the current directory at humphrey.conf
.
Default
The configuration was not found, so the default configuration was used.
Trait Implementations§
source§impl Clone for ConfigSource
impl Clone for ConfigSource
source§fn clone(&self) -> ConfigSource
fn clone(&self) -> ConfigSource
Returns a copy of the value. Read more
1.0.0 · 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 ConfigSource
impl Debug for ConfigSource
source§impl PartialEq for ConfigSource
impl PartialEq for ConfigSource
source§fn eq(&self, other: &ConfigSource) -> bool
fn eq(&self, other: &ConfigSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConfigSource
impl Eq for ConfigSource
impl StructuralEq for ConfigSource
impl StructuralPartialEq for ConfigSource
Auto Trait Implementations§
impl RefUnwindSafe for ConfigSource
impl Send for ConfigSource
impl Sync for ConfigSource
impl Unpin for ConfigSource
impl UnwindSafe for ConfigSource
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