pub trait WideEventFormatter: Send + Sync {
// Required method
fn write_record(
&self,
w: &mut dyn Write,
system: Option<&str>,
timestamp: &str,
record: &WideEventRecord,
) -> Result<()>;
}Expand description
Trait for formatting a wide event record into a writer.
The timestamp parameter is pre-formatted by the layer’s
FormatTime implementation — formatters
should use it as-is.
Required Methods§
Sourcefn write_record(
&self,
w: &mut dyn Write,
system: Option<&str>,
timestamp: &str,
record: &WideEventRecord,
) -> Result<()>
fn write_record( &self, w: &mut dyn Write, system: Option<&str>, timestamp: &str, record: &WideEventRecord, ) -> Result<()>
Format a single wide event record and write it to w.
§Errors
Returns an I/O error if writing to w fails.