[][src]Struct rexrocksdb::rocksdb_options::DBOptions

pub struct DBOptions {
    pub inner: *mut Options,
}

Fields

inner: *mut Options

Methods

impl DBOptions[src]

pub fn new() -> DBOptions[src]

pub fn increase_parallelism(&mut self, parallelism: i32)[src]

pub fn add_event_listener<L: EventListener>(&mut self, l: L)[src]

pub fn create_if_missing(&mut self, create_if_missing: bool)[src]

pub fn set_max_open_files(&mut self, nfiles: c_int)[src]

pub fn set_max_total_wal_size(&mut self, size: u64)[src]

pub fn set_use_fsync(&mut self, useit: bool)[src]

pub fn set_bytes_per_sync(&mut self, nbytes: u64)[src]

pub fn set_table_cache_num_shard_bits(&mut self, nbits: c_int)[src]

pub fn set_writable_file_max_buffer_size(&mut self, nbytes: c_int)[src]

pub fn set_use_direct_reads(&mut self, v: bool)[src]

pub fn set_use_direct_io_for_flush_and_compaction(&mut self, v: bool)[src]

pub fn set_max_manifest_file_size(&mut self, size: u64)[src]

pub fn set_max_background_jobs(&mut self, n: c_int)[src]

pub fn set_max_subcompactions(&mut self, n: u32)[src]

pub fn set_wal_bytes_per_sync(&mut self, n: u64)[src]

pub fn set_wal_recovery_mode(&mut self, mode: DBRecoveryMode)[src]

pub fn set_delayed_write_rate(&mut self, rate: u64)[src]

pub fn set_dump_malloc_stats(&self, v: bool)[src]

pub fn enable_statistics(&mut self, v: bool)[src]

pub fn get_statistics_ticker_count(
    &self,
    ticker_type: DBStatisticsTickerType
) -> u64
[src]

pub fn get_and_reset_statistics_ticker_count(
    &self,
    ticker_type: DBStatisticsTickerType
) -> u64
[src]

pub fn get_statistics_histogram(
    &self,
    hist_type: DBStatisticsHistogramType
) -> Option<HistogramData>
[src]

pub fn get_statistics_histogram_string(
    &self,
    hist_type: DBStatisticsHistogramType
) -> Option<String>
[src]

pub fn get_statistics(&self) -> Option<String>[src]

pub fn reset_statistics(&self)[src]

pub fn set_stats_dump_period_sec(&mut self, period: usize)[src]

pub fn set_db_log_dir(&mut self, path: &str)[src]

pub fn set_wal_dir(&mut self, path: &str)[src]

pub fn set_wal_ttl_seconds(&mut self, ttl: u64)[src]

pub fn set_wal_size_limit_mb(&mut self, limit: u64)[src]

pub fn set_max_log_file_size(&mut self, size: u64)[src]

pub fn set_log_file_time_to_roll(&mut self, ttl: u64)[src]

pub fn set_info_log_level(&mut self, level: DBInfoLogLevel)[src]

pub fn set_keep_log_file_num(&mut self, num: u64)[src]

pub fn set_compaction_readahead_size(&mut self, size: u64)[src]

pub fn set_ratelimiter(&mut self, rate_bytes_per_sec: i64)[src]

pub fn create_info_log(&self, path: &str) -> Result<(), String>[src]

pub fn enable_pipelined_write(&self, v: bool)[src]

pub fn allow_concurrent_memtable_write(&self, v: bool)[src]

pub fn manual_wal_flush(&self, v: bool)[src]

pub fn set_db_paths<T: AsRef<Path>>(&self, val: &[(T, u64)])[src]

the second parameter is a slice which contains tuples (path, target_size).

Trait Implementations

impl Clone for DBOptions[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for DBOptions[src]

impl Default for DBOptions[src]

Auto Trait Implementations

impl !Send for DBOptions

impl !Sync for DBOptions

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]