Struct kvdb_rocksdb::CompactionProfile [−][src]
Compaction profile for the database settings Note, that changing these parameters may trigger the compaction process of RocksDB on startup. https://github.com/facebook/rocksdb/wiki/Leveled-Compaction#level_compaction_dynamic_level_bytes-is-true
Fields
initial_file_size: u64
L0-L1 target file size The minimum size should be calculated in accordance with the number of levels and the expected size of the database.
block_size: usize
block size
Implementations
impl CompactionProfile
[src]
pub fn auto(db_path: &Path) -> CompactionProfile
[src]
Attempt to determine the best profile automatically, only Linux for now.
pub fn ssd() -> CompactionProfile
[src]
Default profile suitable for SSD storage
pub fn hdd() -> CompactionProfile
[src]
Slow HDD compaction profile
Trait Implementations
impl Clone for CompactionProfile
[src]
fn clone(&self) -> CompactionProfile
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CompactionProfile
[src]
impl Debug for CompactionProfile
[src]
impl Default for CompactionProfile
[src]
fn default() -> CompactionProfile
[src]
Default profile suitable for most storage
impl PartialEq<CompactionProfile> for CompactionProfile
[src]
fn eq(&self, other: &CompactionProfile) -> bool
[src]
fn ne(&self, other: &CompactionProfile) -> bool
[src]
impl StructuralPartialEq for CompactionProfile
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompactionProfile
impl Send for CompactionProfile
impl Sync for CompactionProfile
impl Unpin for CompactionProfile
impl UnwindSafe for CompactionProfile
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,