pub struct FixedConfig<T: Translator> {
pub mmr_journal_partition: String,
pub mmr_items_per_blob: NonZeroU64,
pub mmr_write_buffer: NonZeroUsize,
pub mmr_metadata_partition: String,
pub log_journal_partition: String,
pub log_items_per_blob: NonZeroU64,
pub log_write_buffer: NonZeroUsize,
pub bitmap_metadata_partition: String,
pub translator: T,
pub thread_pool: Option<ThreadPool>,
pub buffer_pool: PoolRef,
}Expand description
Configuration for a Current authenticated db with fixed-size values.
Fields§
§mmr_journal_partition: StringThe name of the storage partition used for the MMR’s backing journal.
mmr_items_per_blob: NonZeroU64The items per blob configuration value used by the MMR journal.
mmr_write_buffer: NonZeroUsizeThe size of the write buffer to use for each blob in the MMR journal.
mmr_metadata_partition: StringThe name of the storage partition used for the MMR’s metadata.
log_journal_partition: StringThe name of the storage partition used to persist the (pruned) log of operations.
log_items_per_blob: NonZeroU64The items per blob configuration value used by the log journal.
log_write_buffer: NonZeroUsizeThe size of the write buffer to use for each blob in the log journal.
bitmap_metadata_partition: StringThe name of the storage partition used for the bitmap metadata.
translator: TThe translator used by the compressed index.
thread_pool: Option<ThreadPool>An optional thread pool to use for parallelizing batch operations.
buffer_pool: PoolRefThe buffer pool to use for caching data.
Implementations§
Source§impl<T: Translator> FixedConfig<T>
impl<T: Translator> FixedConfig<T>
Sourcepub fn to_any_config(self) -> AConfig<T>
pub fn to_any_config(self) -> AConfig<T>
Convert this config to an AConfig used to initialize the authenticated log.
Trait Implementations§
Source§impl<T: Clone + Translator> Clone for FixedConfig<T>
impl<T: Clone + Translator> Clone for FixedConfig<T>
Source§fn clone(&self) -> FixedConfig<T>
fn clone(&self) -> FixedConfig<T>
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> Freeze for FixedConfig<T>where
T: Freeze,
impl<T> !RefUnwindSafe for FixedConfig<T>
impl<T> Send for FixedConfig<T>where
T: Send,
impl<T> Sync for FixedConfig<T>where
T: Sync,
impl<T> Unpin for FixedConfig<T>where
T: Unpin,
impl<T> !UnwindSafe for FixedConfig<T>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)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>
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