pub struct MaintenanceOptions {
pub compact_when: CompactTrigger,
pub compaction: CompactionOptions,
pub gc: Option<GcOptions>,
}Expand description
Settings for Namespace::maintain.
Fields§
§compact_when: CompactTriggerWhen a compaction is due.
compaction: CompactionOptionsWhat the compaction does when it runs. A namespace with more live
segments than CompactionOptions::max_segments also makes one due, so
the merge is not left waiting for a tail.
gc: Option<GcOptions>The collection to run after the compaction, or None to run none. It
runs even when no compaction was due. Fencing is a per-call flag in
here (GcOptions::fence_wal), not a property of the namespace.
Trait Implementations§
Source§impl Clone for MaintenanceOptions
impl Clone for MaintenanceOptions
impl Copy for MaintenanceOptions
Source§impl Debug for MaintenanceOptions
impl Debug for MaintenanceOptions
Source§impl Default for MaintenanceOptions
impl Default for MaintenanceOptions
impl Eq for MaintenanceOptions
Source§impl PartialEq for MaintenanceOptions
impl PartialEq for MaintenanceOptions
impl StructuralPartialEq for MaintenanceOptions
Auto Trait Implementations§
impl Freeze for MaintenanceOptions
impl RefUnwindSafe for MaintenanceOptions
impl Send for MaintenanceOptions
impl Sync for MaintenanceOptions
impl Unpin for MaintenanceOptions
impl UnsafeUnpin for MaintenanceOptions
impl UnwindSafe for MaintenanceOptions
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
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§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