Skip to main content

WriteEvent

Trait WriteEvent 

Source
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§

Source

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

Source§

fn write_event(&mut self, event: &TraceEvent) -> Result<()>

Implementors§