Enum trillium_logger::ColorMode
source · #[non_exhaustive]pub enum ColorMode {
Auto,
On,
Off,
}
Expand description
A configuration option that determines if format will be colorful.
The default is ColorMode::Auto
, which only enables color if stdout
is detected to be a shell terminal (tty). If this detection is
incorrect, you can explicitly set it to ColorMode::On
or
ColorMode::Off
Note: The actual colorization of output is determined by the log formatters, so it is possible for this to be correctly enabled but for the output to have no colored components.
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.
Trait Implementations§
impl Copy for ColorMode
Auto Trait Implementations§
impl RefUnwindSafe for ColorMode
impl Send for ColorMode
impl Sync for ColorMode
impl Unpin for ColorMode
impl UnwindSafe for ColorMode
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