pub trait Encode {
// Required method
fn encode_record<W: BufWriter>(&self, writer: &mut W);
}Expand description
A datatype which can be encoded.
The transaction payload of the commitlog (i.e. individual records in the log) must satisfy this trait.
Required Methods§
Sourcefn encode_record<W: BufWriter>(&self, writer: &mut W)
fn encode_record<W: BufWriter>(&self, writer: &mut W)
Encode self to the given buffer.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".