Skip to main content

ConfigStoreKVDatabase

Struct ConfigStoreKVDatabase 

Source
pub struct ConfigStoreKVDatabase {
Show 29 fields pub flush_after: u64, pub write_ahead_log: bool, pub compress: Option<bool>, pub parallelism: Option<i32>, pub max_open_files: Option<i32>, pub write_buffer_size: Option<usize>, pub max_write_buffer_number: Option<i32>, pub min_write_buffer_number: Option<i32>, pub min_write_buffer_number_to_merge: Option<i32>, pub block_cache_size: Option<u32>, pub cache_index_and_filter_blocks: Option<bool>, pub compression_type: Option<DBCompressionType>, pub wal_compression_type: Option<DBCompressionType>, pub wal_ttl_seconds: Option<u64>, pub wal_size_limit_mb: Option<u64>, pub wal_bytes_per_sync: Option<u64>, pub wal_recovery_mode: Option<DBRecoveryMode>, pub compression_level: Option<i32>, pub min_level_to_compress: Option<c_int>, pub level_zero_file_num_compaction_trigger: Option<i32>, pub level_zero_slowdown_writes_trigger: Option<i32>, pub level_zero_stop_writes_trigger: Option<i32>, pub max_bytes_for_level_base: Option<u64>, pub max_bytes_for_level_multiplier: Option<f64>, pub target_file_size_base: Option<u64>, pub max_background_jobs: Option<i32>, pub max_subcompactions: Option<u32>, pub max_flushes: Option<u32>, pub stats_dump_period_sec: Option<u32>,
}

Fields§

§flush_after: u64§write_ahead_log: bool§compress: Option<bool>

Whether or not to compress.

Will get overriden if compression_type is also specified.

§parallelism: Option<i32>§max_open_files: Option<i32>§write_buffer_size: Option<usize>

WARN: In KB!

§max_write_buffer_number: Option<i32>§min_write_buffer_number: Option<i32>§min_write_buffer_number_to_merge: Option<i32>§block_cache_size: Option<u32>§cache_index_and_filter_blocks: Option<bool>§compression_type: Option<DBCompressionType>§wal_compression_type: Option<DBCompressionType>§wal_ttl_seconds: Option<u64>§wal_size_limit_mb: Option<u64>§wal_bytes_per_sync: Option<u64>§wal_recovery_mode: Option<DBRecoveryMode>§compression_level: Option<i32>§min_level_to_compress: Option<c_int>§level_zero_file_num_compaction_trigger: Option<i32>§level_zero_slowdown_writes_trigger: Option<i32>§level_zero_stop_writes_trigger: Option<i32>§max_bytes_for_level_base: Option<u64>§max_bytes_for_level_multiplier: Option<f64>§target_file_size_base: Option<u64>§max_background_jobs: Option<i32>§max_subcompactions: Option<u32>§max_flushes: Option<u32>§stats_dump_period_sec: Option<u32>

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for ConfigStoreKVDatabase

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more