pub trait ChainEntry: Sized + Debug {
// Required methods
fn commit_ts(&self) -> u64;
fn txn_id(&self) -> u64;
fn set_commit_ts(&mut self, ts: u64);
}Expand description
Trait for version entry types used in binary-search chains.
Implemented by durable_storage::Version and mvcc_concurrent::VersionEntry
to allow a single BinarySearchChain<E> to handle both.
Required Methods§
Sourcefn set_commit_ts(&mut self, ts: u64)
fn set_commit_ts(&mut self, ts: u64)
Set the commit timestamp (called during commit)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.