pub struct ScanOptions {
pub entry_filter: Option<EntryFilter>,
pub hash_jobs: Option<usize>,
}Expand description
The options of TreeModel::scan.
Fields§
§entry_filter: Option<EntryFilter>The filter that sees each entry.
If it is None, the walk keeps each entry with the metadata that
EntryMeta describes.
hash_jobs: Option<usize>The most regular files that the hash pass reads at the same time.
The default is the number of CPUs, or 1 if that number is not known.
The pass caps the number at the thread count of the blocking pool of
the runtime. If the value is Some(0), the scan returns
Error::InvalidInput and the walk does
not start.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ScanOptions
impl !Sync for ScanOptions
impl !UnwindSafe for ScanOptions
impl Freeze for ScanOptions
impl Send 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