[][src]Struct dua::traverse::Traversal

pub struct Traversal {
    pub tree: Tree,
    pub root_index: TreeIndex,
    pub entries_traversed: u64,
    pub io_errors: u64,
    pub total_bytes: Option<u64>,
}

The result of the previous filesystem traversal

Fields

tree: Tree

A tree representing the entire filestem traversal

root_index: TreeIndex

The top-level node of the tree.

entries_traversed: u64

Amount of files or directories we have seen during the filesystem traversal

io_errors: u64

Total amount of IO errors encountered when traversing the filesystem

total_bytes: Option<u64>

Total amount of bytes seen during the traversal

Methods

impl Traversal[src]

pub fn from_walk(
    walk_options: WalkOptions,
    input: Vec<PathBuf>,
    update: impl FnMut(&Traversal) -> Result<(), Error>
) -> Result<Traversal, Error>
[src]

Trait Implementations

impl Default for Traversal[src]

impl Debug for Traversal[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]