A **datatype** which can be encoded. The transaction payload of the commitlog (i.e. individual records in the log) must satisfy this trait.
| 16 | /// The transaction payload of the commitlog (i.e. individual records in the log) |
| 17 | /// must satisfy this trait. |
| 18 | pub trait Encode { |
| 19 | /// Encode `self` to the given buffer. |
| 20 | fn encode_record<W: BufWriter>(&self, writer: &mut W); |
| 21 | } |
| 22 | |
| 23 | impl<T: Encode> Encode for Arc<T> { |
| 24 | fn encode_record<W: BufWriter>(&self, writer: &mut W) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…