pub trait Encode: Debug + Send + Sync + 'static {
fn encode(
&self,
w: &mut dyn Write,
record: &Record<'_>
) -> Result<(), Box<dyn Error + Sync + Send>>;
}
Expand description
A trait implemented by types that can serialize a Record
into a
Write
r.
Encode
rs are commonly used by Append
ers to format a log record for
output.