Skip to main content

ChainEntry

Trait ChainEntry 

Source
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§

Source

fn commit_ts(&self) -> u64

Get the commit timestamp (0 = uncommitted)

Source

fn txn_id(&self) -> u64

Get the transaction ID that created this version

Source

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.

Implementors§