pub trait ReaderTxnTracker: Send + Sync {
// Required method
fn wait_for_pre_commit_readers(&self) -> Result<(), DatabaseError>;
}Available on crate feature
provider only.Expand description
Object-safe adapter for reader-txn tracking during unwind.
Required Methods§
Sourcefn wait_for_pre_commit_readers(&self) -> Result<(), DatabaseError>
fn wait_for_pre_commit_readers(&self) -> Result<(), DatabaseError>
Waits until all readers older than the latest committed txnid have drained.
Returns an error only if the environment stops answering queries, such as after a fatal MDBX error, since then it can no longer tell whether old readers remain.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".