pub struct ScanOptions {
pub jobs: usize,
pub window: usize,
pub batch_bytes: u64,
pub follow_symlinks: bool,
pub progress: Option<ProgressSink>,
pub checksum: ChecksumTier,
pub strictness: MatchStrictness,
pub force: bool,
pub prune: bool,
}Expand description
Knobs for a scan. jobs == 0 means “use available parallelism”.
Fields§
§jobs: usize§window: usizeInitial probe read window in bytes; widened on NeedMore.
batch_bytes: u64In-flight art-byte budget and per-batch byte-flush threshold.
follow_symlinks: boolFollow symlinks during collection. Off by default: symlinks are logged and skipped, which keeps the walk immune to directory-symlink cycles.
progress: Option<ProgressSink>Optional progress callback. None (the default) disables reporting.
checksum: ChecksumTierWhich checksums to compute and store this scan.
strictness: MatchStrictnessHow a refind fingerprint match is confirmed before retargeting.
force: boolScan only: re-ingest files already present in the DB, overwriting curated metadata. Off by default; bare scan is additive.
prune: boolRevalidate only: delete tracks whose backing file is gone and GC orphaned art. Off by default.
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
Auto Trait Implementations§
impl !RefUnwindSafe for ScanOptions
impl !UnwindSafe for ScanOptions
impl Freeze for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnsafeUnpin 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