pub trait LoggingSink: Send + Sync {
// Required method
fn emit(&self, record: LogRecord) -> Result<(), SinkError>;
}Expand description
Trait for log destinations. Implementations are required to be
thread-safe (Send + Sync); the decorator may emit from any
thread that calls into the resource.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".