pub struct Options {
pub window_bytes: i64,
pub max_window_bytes: i64,
pub quiet_after_bytes: i64,
pub max_tail: i64,
pub dry_run: bool,
pub pause: Duration,
pub swap_attempts: u32,
pub busy_ms: i64,
pub settle_ms: i64,
}Expand description
What a pass does and how fast.
Fields§
§window_bytes: i64The size of one window read from the old file; a window is cut to whole lines and extended to
the next turn boundary, up to max_window_bytes.
max_window_bytes: i64§quiet_after_bytes: i64A window that has grown to this and holds no turn boundary is cut after the last line where no reply is in
flight (compact::last_quiet_line) instead of growing to max_window_bytes.
max_tail: i64The most the swap copies across from the end of the old file, as it is.
dry_run: boolRead, plan and check everything; write nothing. The report has the counts.
pause: DurationBetween windows, so the pass is polite to what else uses the store.
swap_attempts: u32How many times a swap that found the old file moved on is tried again before the pass gives up.
busy_ms: i64A half-built file written to within this many ms belongs to a pass that is still running (in another srv on the same store); an older one is a crash’s leftover and is discarded.
settle_ms: i64An old file that has not been written to for this many ms and ends in an unterminated line ends in a torn write nobody will finish (the process died mid-line): the swap leaves that fragment out instead of waiting for it for ever. 0 or less: never.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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