pub trait TracerConfig {
// Required methods
fn now() -> String;
fn line() -> u32;
fn file() -> &'static str;
fn module_path() -> &'static str;
fn thread_id() -> ThreadId;
fn timestamp() -> u128;
}
Expand description
A trait for accessing information about the current state of the program that can be included in log messages.
Required Methods§
Sourcefn module_path() -> &'static str
fn module_path() -> &'static str
Returns the path of the current module.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.