MCPcopy Index your code
hub / github.com/clockworklabs/SpacetimeDB / Encode

Interface Encode

crates/commitlog/src/payload.rs:18–21  ·  view source on GitHub ↗

A **datatype** which can be encoded. The transaction payload of the commitlog (i.e. individual records in the log) must satisfy this trait.

Source from the content-addressed store, hash-verified

16/// The transaction payload of the commitlog (i.e. individual records in the log)
17/// must satisfy this trait.
18pub trait Encode {
19 /// Encode `self` to the given buffer.
20 fn encode_record<W: BufWriter>(&self, writer: &mut W);
21}
22
23impl<T: Encode> Encode for Arc<T> {
24 fn encode_record<W: BufWriter>(&self, writer: &mut W) {

Callers

nothing calls this directly

Implementers 3

mod.rscrates/commitlog/benches/common/mod.rs
payload.rscrates/commitlog/src/payload.rs
txdata.rscrates/commitlog/src/payload/txdata.rs

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…