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 count_hard_links<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn count_hard_links<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Count every hard link to a file instead of only the first one seen.
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
Deepest level kept in the tree (None = unlimited). Everything below is still traversed and counted into the sizes of the deepest kept directories; only the nodes are not retained.
Sourcepub fn max_entries<VALUE: Into<Option<u64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn max_entries<VALUE: Into<Option<u64>>>( &mut self, value: VALUE, ) -> &mut Self
Maximum descendant entries consumed after hidden/ignore filtering, at
every depth (max_depth does not reduce the count).
None is unlimited; zero permits only an empty scope. The root does
not count. Metadata failures and unsupported file types still count.
Exceeding the limit fails the scan instead of returning a partial tree.
This is not a bound on walker prefetching, Git enrichment, or total RAM.
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 using globset syntax (not gitignore negation rules).
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 git_status<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn git_status<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Annotate nodes with Git status when the root is inside a repository.