pub struct TracingConfig { /* private fields */ }Implementations§
Source§impl TracingConfig
impl TracingConfig
pub fn new() -> Self
Sourcepub fn file(self, file: bool) -> Self
pub fn file(self, file: bool) -> Self
toggle if the ansi colors should be used in the tracing output; (default: false)
Sourcepub fn line_number(self, line_number: bool) -> Self
pub fn line_number(self, line_number: bool) -> Self
toggle if the file name should be included in the tracing output; (default: false)
Sourcepub fn target(self, target: bool) -> Self
pub fn target(self, target: bool) -> Self
toggle if the target should be included in the tracing output; (default: true)
Sourcepub fn timer(self, timer: bool) -> Self
pub fn timer(self, timer: bool) -> Self
toggle if the timer should be included in the tracing output; (default: true)
Sourcepub fn thread_ids(self, thread_ids: bool) -> Self
pub fn thread_ids(self, thread_ids: bool) -> Self
toggle if the thread ids should be included in the tracing output; (default: false)
Sourcepub fn thread_names(self, thread_names: bool) -> Self
pub fn thread_names(self, thread_names: bool) -> Self
toggle if the thread names should be included in the tracing output; (default: false)
pub fn get(&self, name: &str) -> bool
Sourcepub const fn get_line_number(&self) -> bool
pub const fn get_line_number(&self) -> bool
returns true if the line number is toggled
Sourcepub const fn get_target(&self) -> bool
pub const fn get_target(&self) -> bool
returns true if the target is toggled
Sourcepub const fn get_thread_ids(&self) -> bool
pub const fn get_thread_ids(&self) -> bool
returns true if the thread ids are toggled
Sourcepub const fn get_thread_names(&self) -> bool
pub const fn get_thread_names(&self) -> bool
returns true if the thread names are toggled
Sourcepub fn init_tracing(self, level: LogLevel, name: Option<&str>) -> Self
pub fn init_tracing(self, level: LogLevel, name: Option<&str>) -> Self
Initialize the tracer with the given name
Trait Implementations§
Source§impl Clone for TracingConfig
impl Clone for TracingConfig
Source§fn clone(&self) -> TracingConfig
fn clone(&self) -> TracingConfig
Returns a duplicate 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 TracingConfig
impl Debug for TracingConfig
Source§impl Default for TracingConfig
impl Default for TracingConfig
Source§impl<'de> Deserialize<'de> for TracingConfigwhere
TracingConfig: Default,
impl<'de> Deserialize<'de> for TracingConfigwhere
TracingConfig: Default,
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 Display for TracingConfig
impl Display for TracingConfig
Source§impl Hash for TracingConfig
impl Hash for TracingConfig
Source§impl Ord for TracingConfig
impl Ord for TracingConfig
Source§fn cmp(&self, other: &TracingConfig) -> Ordering
fn cmp(&self, other: &TracingConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TracingConfig
impl PartialEq for TracingConfig
Source§impl PartialOrd for TracingConfig
impl PartialOrd for TracingConfig
Source§impl Serialize for TracingConfig
impl Serialize for TracingConfig
impl Copy for TracingConfig
impl Eq for TracingConfig
impl StructuralPartialEq for TracingConfig
Auto Trait Implementations§
impl Freeze for TracingConfig
impl RefUnwindSafe for TracingConfig
impl Send for TracingConfig
impl Sync for TracingConfig
impl Unpin for TracingConfig
impl UnwindSafe for TracingConfig
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