pub trait ValidationMode: Sealed + 'static {
const VALIDATED: bool;
// Required method
fn run<F, R>(
txn: &mut CommandTransaction,
total_rows: usize,
body: F,
) -> Result<R>
where F: FnOnce(&mut CommandTransaction) -> Result<R>;
}Expand description
Marker trait for validation mode (sealed)
Required Associated Constants§
Required Methods§
Sourcefn run<F, R>(
txn: &mut CommandTransaction,
total_rows: usize,
body: F,
) -> Result<R>
fn run<F, R>( txn: &mut CommandTransaction, total_rows: usize, body: F, ) -> Result<R>
Run body inside a transaction in this mode and commit. Unchecked
routes through execute_bulk_unchecked, which disables conflict tracking
and commits via the bypass path; the others reserve the write-set hint
(when total_rows > 0) and commit through the standard path.
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.