pub struct GlobOptions {
pub follow_symlinks: bool,
pub max_depth: Option<usize>,
pub case_sensitive: bool,
pub max_inflight: usize,
pub timeout: Option<Duration>,
pub predicates: Option<Predicates>,
pub root_dir: Option<PathBuf>,
}Expand description
Configuration options for glob operations
This struct allows fine-grained control over globbing behavior, including symlink handling, depth limits, and filtering predicates.
Fields§
§follow_symlinks: boolWhether to follow symbolic links during traversal
max_depth: Option<usize>Maximum directory depth to traverse (None for unlimited)
case_sensitive: boolWhether to use case-sensitive matching
max_inflight: usizeMaximum number of concurrent operations for async globbing
timeout: Option<Duration>Timeout for individual operations
predicates: Option<Predicates>Predicates for filtering files based on metadata
root_dir: Option<PathBuf>Root directory to start globbing from
Trait Implementations§
Source§impl Clone for GlobOptions
impl Clone for GlobOptions
Source§fn clone(&self) -> GlobOptions
fn clone(&self) -> GlobOptions
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 moreSource§impl Debug for GlobOptions
impl Debug for GlobOptions
Auto Trait Implementations§
impl Freeze for GlobOptions
impl RefUnwindSafe for GlobOptions
impl Send for GlobOptions
impl Sync for GlobOptions
impl Unpin for GlobOptions
impl UnwindSafe for GlobOptions
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