pub struct ExecutorConfig {
pub max_operations: usize,
pub max_keys_per_operation: usize,
pub query_workers: usize,
pub read_workers: usize,
pub write_workers: usize,
pub failure_threshold: u32,
pub recovery_interval: Duration,
}Expand description
The executor’s limits: the scheduler’s storage credits and the workers.
Fields§
§max_operations: usizeOperations the scheduler keeps in flight (StorageConfig).
max_keys_per_operation: usizeKeys one operation names (StorageConfig).
query_workers: usizeThreads running existence queries.
read_workers: usizeThreads running gets.
write_workers: usizeThreads running puts.
failure_threshold: u32Failed backend calls that open the backend.
recovery_interval: DurationHow long an open backend refuses calls before one probe.
Trait Implementations§
Source§impl Clone for ExecutorConfig
impl Clone for ExecutorConfig
impl Copy for ExecutorConfig
Source§impl Debug for ExecutorConfig
impl Debug for ExecutorConfig
impl Eq for ExecutorConfig
Source§impl PartialEq for ExecutorConfig
impl PartialEq for ExecutorConfig
impl StructuralPartialEq for ExecutorConfig
Auto Trait Implementations§
impl Freeze for ExecutorConfig
impl RefUnwindSafe for ExecutorConfig
impl Send for ExecutorConfig
impl Sync for ExecutorConfig
impl Unpin for ExecutorConfig
impl UnsafeUnpin for ExecutorConfig
impl UnwindSafe for ExecutorConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.