Struct tikv::config::CoprReadPoolConfig[][src]

pub struct CoprReadPoolConfig {
    pub use_unified_pool: Option<bool>,
    pub high_concurrency: usize,
    pub normal_concurrency: usize,
    pub low_concurrency: usize,
    pub max_tasks_per_worker_high: usize,
    pub max_tasks_per_worker_normal: usize,
    pub max_tasks_per_worker_low: usize,
    pub stack_size: ReadableSize,
}

Fields

use_unified_pool: Option<bool>high_concurrency: usizenormal_concurrency: usizelow_concurrency: usizemax_tasks_per_worker_high: usizemax_tasks_per_worker_normal: usizemax_tasks_per_worker_low: usizestack_size: ReadableSize

Implementations

impl CoprReadPoolConfig[src]

pub fn to_yatp_pool_configs(self) -> Vec<Config>[src]

Builds configurations for low, normal and high priority pools.

pub fn default_for_test() -> Self[src]

pub fn use_unified_pool(&self) -> bool[src]

pub fn adjust_use_unified_pool(&mut self)[src]

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

Trait Implementations

impl Clone for CoprReadPoolConfig[src]

impl Copy for CoprReadPoolConfig[src]

impl Debug for CoprReadPoolConfig[src]

impl Default for CoprReadPoolConfig[src]

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

impl PartialEq<CoprReadPoolConfig> for CoprReadPoolConfig[src]

impl Serialize for CoprReadPoolConfig[src]

impl StructuralPartialEq for CoprReadPoolConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for CoprReadPoolConfig

impl Send for CoprReadPoolConfig

impl Sync for CoprReadPoolConfig

impl Unpin for CoprReadPoolConfig

impl UnwindSafe for CoprReadPoolConfig

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]