[−][src]Struct liboskar::walk_parallel::Walk
The 'Walk' struct contains all the information we need to traverse a directory.
Fields
path: PathBuf
Methods
impl Walk
[src]
pub fn print_dir(w: &Walk, total: &Arc<AtomicUsize>)
[src]
function to make output from a 'Walk', using one thread. It also takes an 'Arc
pub fn set_depth(&mut self, d: u8)
[src]
set the maximum depth to display
pub fn set_regex(&mut self, r: Regex)
[src]
set the regex for excludes
pub fn set_threshold(&mut self, n: u64)
[src]
set the minumum file size
pub fn with_files(&mut self)
[src]
include files when printing
pub fn blocks(&mut self)
[src]
include files when printing
pub fn artifacts_only(&mut self)
[src]
include files when printing
pub fn new(p: PathBuf, n: usize) -> Walk
[src]
Create a new 'Walk' from a 'PathBuf' and the number of processor cores to be used.
pub fn push_subdir(
w: &Walk,
worker: &mut Worker<Status<Walk>>,
total: &Arc<AtomicUsize>
)
[src]
w: &Walk,
worker: &mut Worker<Status<Walk>>,
total: &Arc<AtomicUsize>
)
This takes a 'Walk' and a 'Worker<Status
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Walk
impl Send for Walk
impl Sync for Walk
impl Unpin for Walk
impl UnwindSafe for Walk
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,