Trait spacetimedb_commitlog::payload::Encode
source · 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.
Object Safety§
This trait is not object safe.