pub trait LogTarget:
Send
+ Sync
+ 'static {
type Time: TimeAbstraction;
// Required methods
fn init();
fn println(args: Arguments<'_>);
}
Expand description
LogTarget
is used to perform log-related operations in a platform-agnostic manner.
Required Associated Types§
Sourcetype Time: TimeAbstraction
type Time: TimeAbstraction
A source of time to add into log messages.
Required Methods§
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.