pub struct ScanConfigBuilder { /* private fields */ }Expand description
Builder for ScanConfig.
Implementations§
Source§impl ScanConfigBuilder
impl ScanConfigBuilder
Sourcepub fn follow_symlinks<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn follow_symlinks<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Follow symbolic links.
Sourcepub fn cross_filesystems<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cross_filesystems<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Cross filesystem boundaries.
Sourcepub fn apparent_size<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn apparent_size<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Use apparent size vs disk usage.
Sourcepub fn max_depth<VALUE: Into<Option<u32>>>(&mut self, value: VALUE) -> &mut Self
pub fn max_depth<VALUE: Into<Option<u32>>>(&mut self, value: VALUE) -> &mut Self
Maximum depth to traverse (None = unlimited).
Sourcepub fn ignore_patterns<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn ignore_patterns<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
Patterns to ignore (gitignore-style glob syntax via globset).
Sourcepub fn threads<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn threads<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
Number of threads for scanning (0 = auto-detect).
Include hidden files (starting with .).
Sourcepub fn compute_hashes<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn compute_hashes<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Compute content hashes during scan.
Sourcepub fn min_hash_size<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn min_hash_size<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
Minimum file size to hash (skip tiny files).
Sourcepub fn build(&self) -> Result<ScanConfig, ScanConfigBuilderError>
pub fn build(&self) -> Result<ScanConfig, ScanConfigBuilderError>
Trait Implementations§
Source§impl Clone for ScanConfigBuilder
impl Clone for ScanConfigBuilder
Source§fn clone(&self) -> ScanConfigBuilder
fn clone(&self) -> ScanConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScanConfigBuilder
impl RefUnwindSafe for ScanConfigBuilder
impl Send for ScanConfigBuilder
impl Sync for ScanConfigBuilder
impl Unpin for ScanConfigBuilder
impl UnsafeUnpin for ScanConfigBuilder
impl UnwindSafe for ScanConfigBuilder
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