Struct tikv::storage::config::Config[][src]

pub struct Config {
    pub data_dir: String,
    pub gc_ratio_threshold: f64,
    pub max_key_size: usize,
    pub scheduler_concurrency: usize,
    pub scheduler_worker_pool_size: usize,
    pub scheduler_pending_write_threshold: ReadableSize,
    pub reserve_space: ReadableSize,
    pub enable_async_apply_prewrite: bool,
    pub enable_ttl: bool,
    pub ttl_check_poll_interval: ReadableDuration,
    pub block_cache: BlockCacheConfig,
}

Fields

data_dir: Stringgc_ratio_threshold: f64max_key_size: usizescheduler_concurrency: usizescheduler_worker_pool_size: usizescheduler_pending_write_threshold: ReadableSizereserve_space: ReadableSizeenable_async_apply_prewrite: boolenable_ttl: boolttl_check_poll_interval: ReadableDuration

Interval to check TTL for all SSTs,

block_cache: BlockCacheConfig

Implementations

impl Config[src]

pub fn validate(&mut self) -> Result<(), Box<dyn Error>>[src]

Trait Implementations

impl Clone for Config[src]

impl<'lt> Configuration<'lt> for Config[src]

type Encoder = Config_encoder_c626a200461aa863<'lt>

impl Debug for Config[src]

impl Default for Config[src]

impl<'de> Deserialize<'de> for Config where
    Config: Default
[src]

impl PartialEq<Config> for Config[src]

impl Serialize for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

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

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

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

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]