pub struct OutputConfig { /* private fields */ }Expand description
Configuration for the output system
Implementations§
Source§impl OutputConfig
impl OutputConfig
Sourcepub fn new(mode: OutputMode) -> Self
pub fn new(mode: OutputMode) -> Self
Create a new output configuration
Sourcepub fn mode(&self) -> OutputMode
pub fn mode(&self) -> OutputMode
Get the current output mode
Sourcepub fn colors_enabled(&self) -> bool
pub fn colors_enabled(&self) -> bool
Check if colors are enabled
Sourcepub fn set_verbose(&mut self)
pub fn set_verbose(&mut self)
Set verbose mode (DEBUG level)
Sourcepub fn init_tracing(&self)
pub fn init_tracing(&self)
Initialize the tracing subscriber based on configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutputConfig
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnsafeUnpin for OutputConfig
impl UnwindSafe for OutputConfig
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