Enum dropshot::ConfigLogging
source · pub enum ConfigLogging {
StderrTerminal {
level: ConfigLoggingLevel,
},
File {
level: ConfigLoggingLevel,
path: Utf8PathBuf,
if_exists: ConfigLoggingIfExists,
},
}
Expand description
Represents the logging configuration for a server. This is expected to be a top-level block in a TOML config file, although that’s not required.
Variants§
StderrTerminal
Fields
§
level: ConfigLoggingLevel
Pretty-printed output to stderr, assumed to support terminal escapes.
File
Bunyan-formatted output to a specified file.
Implementations§
Trait Implementations§
source§impl Clone for ConfigLogging
impl Clone for ConfigLogging
source§fn clone(&self) -> ConfigLogging
fn clone(&self) -> ConfigLogging
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 ConfigLogging
impl Debug for ConfigLogging
source§impl<'de> Deserialize<'de> for ConfigLogging
impl<'de> Deserialize<'de> for ConfigLogging
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ConfigLogging
impl PartialEq for ConfigLogging
source§fn eq(&self, other: &ConfigLogging) -> bool
fn eq(&self, other: &ConfigLogging) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConfigLogging
impl Serialize for ConfigLogging
impl StructuralPartialEq for ConfigLogging
Auto Trait Implementations§
impl RefUnwindSafe for ConfigLogging
impl Send for ConfigLogging
impl Sync for ConfigLogging
impl Unpin for ConfigLogging
impl UnwindSafe for ConfigLogging
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