Struct spool::rocks::RocksSpoolParams
source · pub struct RocksSpoolParams {
pub increase_parallelism: Option<i32>,
pub optimize_level_style_compaction: Option<usize>,
pub optimize_universal_style_compaction: Option<usize>,
pub paranoid_checks: bool,
pub compression_type: DBCompressionTypeDef,
pub compaction_readahead_size: Option<usize>,
pub level_compaction_dynamic_level_bytes: bool,
pub max_open_files: Option<usize>,
pub log_level: LogLevelDef,
pub memtable_huge_page_size: Option<usize>,
pub log_file_time_to_roll: Duration,
pub obsolete_files_period: Duration,
}
Fields§
§increase_parallelism: Option<i32>
§optimize_level_style_compaction: Option<usize>
§optimize_universal_style_compaction: Option<usize>
§paranoid_checks: bool
§compression_type: DBCompressionTypeDef
§compaction_readahead_size: Option<usize>
If non-zero, we perform bigger reads when doing compaction. If you’re running RocksDB on spinning disks, you should set this to at least 2MB. That way RocksDB’s compaction is doing sequential instead of random reads
level_compaction_dynamic_level_bytes: bool
§max_open_files: Option<usize>
§log_level: LogLevelDef
§memtable_huge_page_size: Option<usize>
§log_file_time_to_roll: Duration
§obsolete_files_period: Duration
Trait Implementations§
source§impl Debug for RocksSpoolParams
impl Debug for RocksSpoolParams
source§impl Default for RocksSpoolParams
impl Default for RocksSpoolParams
source§impl<'de> Deserialize<'de> for RocksSpoolParams
impl<'de> Deserialize<'de> for RocksSpoolParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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§
impl Freeze for RocksSpoolParams
impl RefUnwindSafe for RocksSpoolParams
impl Send for RocksSpoolParams
impl Sync for RocksSpoolParams
impl Unpin for RocksSpoolParams
impl UnwindSafe for RocksSpoolParams
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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