RocksTxRefArg

Type Alias RocksTxRefArg 

Source
pub type RocksTxRefArg<'a> = Option<&'a RocksTx<'a>>;
Available on Unix and crate feature rocksdb and crate feature provider only.
Expand description

Helper type for RocksDB transaction reference argument in reader constructors.

When rocksdb feature is enabled, this is an optional reference to a RocksDB transaction. The Option allows callers to skip transaction creation when RocksDB isn’t needed (e.g., on legacy MDBX-only nodes). When rocksdb feature is disabled, it’s () (unit type) to allow the same API without feature gates.

Aliased Type§

pub enum RocksTxRefArg<'a> {
    None,
    Some(&'a RocksTx<'a>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(&'a RocksTx<'a>)

Some value of type T.

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.