pub struct FileStatsOptions {
pub root: PathBuf,
pub void_dir_name: String,
pub include_hidden: bool,
pub mmap_threshold: u64,
}Expand description
Options for collecting file statistics.
Fields§
§root: PathBufRoot directory to scan.
void_dir_name: StringName of the void directory to skip (e.g., “.void”).
Whether to include hidden files (dotfiles).
mmap_threshold: u64Files larger than this threshold are memory-mapped. Set to 0 to disable mmap (always read into Vec).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileStatsOptions
impl RefUnwindSafe for FileStatsOptions
impl Send for FileStatsOptions
impl Sync for FileStatsOptions
impl Unpin for FileStatsOptions
impl UnsafeUnpin for FileStatsOptions
impl UnwindSafe for FileStatsOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more