pub trait WriteEvent: Send + 'static {
// Required method
fn write_event(&mut self, event: &TraceEvent) -> Result<()>;
}Expand description
Trait for destinations that can receive trace events.
Required Methods§
Sourcefn write_event(&mut self, event: &TraceEvent) -> Result<()>
fn write_event(&mut self, event: &TraceEvent) -> Result<()>
Write a trace event to the destination.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl WriteEvent for UnboundedSender<TraceEvent>
Impl for UnboundedSender - sends events to a channel (useful for testing).
impl WriteEvent for UnboundedSender<TraceEvent>
Impl for UnboundedSender - sends events to a channel (useful for testing).