pub enum ScannerSpeed {
Fastest,
Fast,
Default,
Slow,
Slowest,
}Expand description
Scanner speed preset controlling throttling behavior.
Each preset defines three parameters:
- sleep_factor: Multiplier applied to elapsed work time to compute inter-object sleep.
- max_sleep: Upper bound on any single throttle sleep.
- cycle_interval: Base delay between scan cycles.
| Preset | Factor | Max Sleep | Cycle Interval |
|---|---|---|---|
fastest | 0 | 0 | 1 second |
fast | 1x | 100ms | 1 minute |
default | 2x | 1 second | 1 minute |
slow | 10x | 15 seconds | 1 minute |
slowest | 100x | 15 seconds | 30 minutes |
The sleep factor, max sleep, and cycle interval can be overridden by
RUSTFS_SCANNER_DELAY, RUSTFS_SCANNER_MAX_WAIT_SECS, and
RUSTFS_SCANNER_CYCLE.
Variants§
Implementations§
Source§impl ScannerSpeed
impl ScannerSpeed
Trait Implementations§
Source§impl Clone for ScannerSpeed
impl Clone for ScannerSpeed
impl Copy for ScannerSpeed
Source§impl Debug for ScannerSpeed
impl Debug for ScannerSpeed
Source§impl Default for ScannerSpeed
impl Default for ScannerSpeed
Source§impl Display for ScannerSpeed
impl Display for ScannerSpeed
impl Eq for ScannerSpeed
Source§impl PartialEq for ScannerSpeed
impl PartialEq for ScannerSpeed
impl StructuralPartialEq for ScannerSpeed
Auto Trait Implementations§
impl Freeze for ScannerSpeed
impl RefUnwindSafe for ScannerSpeed
impl Send for ScannerSpeed
impl Sync for ScannerSpeed
impl Unpin for ScannerSpeed
impl UnsafeUnpin for ScannerSpeed
impl UnwindSafe for ScannerSpeed
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