pub struct IndexOptions {
pub gc_after: bool,
pub min_age: Duration,
pub filter: IndexFilter,
pub worker: Option<PathBuf>,
}Expand description
The optional knobs of an indexing run (#331).
Collapsed into one struct so a new knob is a field rather than an argument respelled at every fan-out layer and call site.
Fields§
§gc_after: boolSweep unreferenced blobs after a successful index.
min_age: DurationBlobs younger than this are never swept (ADR 0028).
filter: IndexFilterWhich repo-relative paths are eligible for indexing (#209).
worker: Option<PathBuf>Pin the parse worker rather than resolving one.
Trait Implementations§
Source§impl Clone for IndexOptions
impl Clone for IndexOptions
Source§fn clone(&self) -> IndexOptions
fn clone(&self) -> IndexOptions
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 IndexOptions
impl Debug for IndexOptions
Auto Trait Implementations§
impl Freeze for IndexOptions
impl RefUnwindSafe for IndexOptions
impl Send for IndexOptions
impl Sync for IndexOptions
impl Unpin for IndexOptions
impl UnsafeUnpin for IndexOptions
impl UnwindSafe for IndexOptions
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