pub struct ListOptions {Show 25 fields
pub all: bool,
pub almost_all: bool,
pub sort_by: SortBy,
pub reverse: bool,
pub dirs_first: bool,
pub recursive: bool,
pub max_depth: Option<usize>,
pub gnu_mode: bool,
pub follow_links: bool,
pub directory: bool,
pub ignore_backups: bool,
pub ignore_patterns: Vec<String>,
pub hide_patterns: Vec<String>,
pub use_ignore_files: bool,
pub list_archives: bool,
pub time_field: TimeField,
pub cli_symlink: CliSymlinkMode,
pub parallel: bool,
pub threads: usize,
pub collect_timing: bool,
pub resolve_owner_group: bool,
pub read_selinux: bool,
pub linux_statx: bool,
pub io_uring: bool,
pub emit_dir_headers: bool,
}Expand description
Options controlling which entries appear and how they are ordered.
Fields§
§all: bool§almost_all: bool§sort_by: SortBy§reverse: bool§dirs_first: bool§recursive: bool§max_depth: Option<usize>§gnu_mode: boolStricter GNU-compatible behavior.
follow_links: boolFollow symlinks when stating (-L).
directory: boolList directories themselves, not contents (-d).
ignore_backups: boolHide *~ backup names (-B).
ignore_patterns: Vec<String>Shell-style ignore patterns (-I / --ignore); always hidden.
hide_patterns: Vec<String>Shell-style hide patterns (--hide); hidden unless -a/-A.
use_ignore_files: boolWhen true, honor .gitignore / .f00ignore in listed directories.
list_archives: boolWhen true, list inside zip/tar archives when a path is an archive file.
(Applied by callers that integrate f00-archive; core itself does not open archives.)
time_field: TimeFieldWhich timestamp to sort/display by.
cli_symlink: CliSymlinkModeHow CLI path arguments that are symlinks are handled.
parallel: boolParallelize metadata (stat) for large directories (rayon).
Forced off when Self::threads is 1.
threads: usizeRayon worker count: 0 = auto, 1 = force serial, N>1 = fixed pool size.
collect_timing: boolWhen true, fill crate::Listing::timing with phase durations.
resolve_owner_group: boolResolve uid/gid to owner/group names (expensive NSS). Off for short listings.
read_selinux: boolRead SELinux context xattr (-Z). Off unless requested.
linux_statx: boolPrefer Linux statx for metadata when available (ignored on other OSes).
io_uring: boolPrefer io_uring batch statx for large directories when the io-uring
cargo feature is enabled (Linux only; ignored otherwise).
emit_dir_headers: boolEmit synthetic directory section headers in recursive listings (-R).
Off for --tree (headers are not used and cost extra work).
Implementations§
Source§impl ListOptions
impl ListOptions
Sourcepub fn use_parallel_stat(&self, entry_count: usize) -> bool
pub fn use_parallel_stat(&self, entry_count: usize) -> bool
Whether metadata should use rayon for this listing size.
Trait Implementations§
Source§impl Clone for ListOptions
impl Clone for ListOptions
Source§fn clone(&self) -> ListOptions
fn clone(&self) -> ListOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListOptions
impl Debug for ListOptions
Auto Trait Implementations§
impl Freeze for ListOptions
impl RefUnwindSafe for ListOptions
impl Send for ListOptions
impl Sync for ListOptions
impl Unpin for ListOptions
impl UnsafeUnpin for ListOptions
impl UnwindSafe for ListOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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