pub struct VerifyOptions {
pub parallelism: usize,
pub throttle: Option<Duration>,
}Expand description
Options for the block-checksum scrubber
(verify_block_checksums_with / AbstractTree::verify_checksum_with).
Fields§
§parallelism: usizeNumber of SSTs to scan concurrently. Clamped to >= 1 and to the table
count. 1 (the default) scans sequentially in table order with no
thread spawn. Per-SST scans are independent (each opens its own file
through the table’s Fs handle), so they parallelize cleanly.
throttle: Option<Duration>Minimum delay each worker waits after finishing one SST before taking
the next, capping I/O pressure on a production box during a scrub.
None (default) runs at full speed.
Implementations§
Source§impl VerifyOptions
impl VerifyOptions
Trait Implementations§
Source§impl Clone for VerifyOptions
impl Clone for VerifyOptions
Source§fn clone(&self) -> VerifyOptions
fn clone(&self) -> VerifyOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerifyOptions
impl Debug for VerifyOptions
Auto Trait Implementations§
impl Freeze for VerifyOptions
impl RefUnwindSafe for VerifyOptions
impl Send for VerifyOptions
impl Sync for VerifyOptions
impl Unpin for VerifyOptions
impl UnsafeUnpin for VerifyOptions
impl UnwindSafe for VerifyOptions
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more