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.
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).