pub struct Config<T: Translator, C> {Show 14 fields
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_write_buffer: NonZeroUsize,
pub log_compression: Option<u8>,
pub log_codec_config: C,
pub log_items_per_section: NonZeroU64,
pub locations_journal_partition: String,
pub locations_items_per_blob: NonZeroU64,
pub translator: T,
pub thread_pool: Option<ThreadPool>,
pub buffer_pool: PoolRef,
}
Expand description
Configuration for an Immutable authenticated db.
Fields§
§mmr_journal_partition: String
The name of the RStorage partition used for the MMR’s backing journal.
mmr_items_per_blob: NonZeroU64
The items per blob configuration value used by the MMR journal.
mmr_write_buffer: NonZeroUsize
The size of the write buffer to use for each blob in the MMR journal.
mmr_metadata_partition: String
The name of the RStorage partition used for the MMR’s metadata.
log_journal_partition: String
The name of the RStorage partition used to persist the (pruned) log of operations.
log_write_buffer: NonZeroUsize
The size of the write buffer to use for each blob in the log journal.
log_compression: Option<u8>
Optional compression level (using zstd
) to apply to log data before storing.
log_codec_config: C
The codec configuration to use for encoding and decoding log items.
log_items_per_section: NonZeroU64
The number of items to put in each section of the journal.
locations_journal_partition: String
The name of the RStorage partition used for the location map.
locations_items_per_blob: NonZeroU64
The number of items to put in each blob in the location map.
translator: T
The translator used by the compressed index.
thread_pool: Option<ThreadPool>
An optional thread pool to use for parallelizing batch operations.
buffer_pool: PoolRef
The buffer pool to use for caching data.
Trait Implementations§
Auto Trait Implementations§
impl<T, C> Freeze for Config<T, C>
impl<T, C> !RefUnwindSafe for Config<T, C>
impl<T, C> Send for Config<T, C>
impl<T, C> Sync for Config<T, C>
impl<T, C> Unpin for Config<T, C>
impl<T, C> !UnwindSafe for Config<T, C>
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
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>
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