pub struct Config<T: Translator, J, S: Strategy, B = ()> {
pub merkle_config: Config<S>,
pub journal_config: J,
pub grafted_metadata_partition: String,
pub translator: T,
pub init_cache: Option<NonZeroUsize>,
pub init_buffer: NonZeroUsize,
pub init_concurrency: B,
}Expand description
Configuration for a Current authenticated db.
Fields§
§merkle_config: Config<S>Configuration for the Merkle structure backing the authenticated journal.
journal_config: JConfiguration for the operations log journal.
grafted_metadata_partition: StringThe name of the storage partition used for grafted tree metadata.
translator: TThe translator used by the compressed index. Ordered databases require an OrderedTranslator.
init_cache: Option<NonZeroUsize>Maximum number of entries in the (location -> key) cache used during init to resolve
snapshot collisions without re-reading the log; None disables it.
init_buffer: NonZeroUsizeSize (in bytes) of the read buffer used to replay the log during init.
init_concurrency: BThe index’s snapshot-build concurrency (see crate::qmdb::SnapshotBuild::Concurrency): ()
for index types that build serially, and the number of build tasks for index types that
build in parallel. A value of 1 builds the index entirely on the init task. Values of
2 and 3 decode on the init task and insert on one or two workers. Larger values split
between spawned decode and insert tasks while the init task merely forwards batches.
Trait Implementations§
Auto Trait Implementations§
impl<T, J, S, B = ()> !RefUnwindSafe for Config<T, J, S, B>
impl<T, J, S, B = ()> !UnwindSafe for Config<T, J, S, B>
impl<T, J, S, B> Freeze for Config<T, J, S, B>
impl<T, J, S, B> Send for Config<T, J, S, B>
impl<T, J, S, B> Sync for Config<T, J, S, B>
impl<T, J, S, B> Unpin for Config<T, J, S, B>
impl<T, J, S, B> UnsafeUnpin for Config<T, J, S, B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more