pub struct ScanOptions {
pub need_ahead_behind: bool,
pub fresh: bool,
pub inventory_dir: Option<PathBuf>,
pub inventory_ttl_secs: u64,
}Expand description
Options controlling a scan (light phase always; heavy phase optional + memoised).
Fields§
§need_ahead_behind: boolWhether to compute ahead/behind counts (heavy phase via rev-list).
fresh: boolWhen true, skip any cached inventory memo and recompute rev-list.
inventory_dir: Option<PathBuf>Directory for the inventory JSON files. None disables memoisation.
inventory_ttl_secs: u64Seconds before a cached entry expires; 0 = SHA-only validation.
Trait Implementations§
Source§impl Clone for ScanOptions
impl Clone for ScanOptions
Source§fn clone(&self) -> ScanOptions
fn clone(&self) -> ScanOptions
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 ScanOptions
impl Debug for ScanOptions
Source§impl Default for ScanOptions
impl Default for ScanOptions
Source§fn default() -> ScanOptions
fn default() -> ScanOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScanOptions
impl RefUnwindSafe for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnsafeUnpin for ScanOptions
impl UnwindSafe for ScanOptions
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