pub struct Traversal {
pub tree: Tree,
pub root_index: TreeIndex,
pub entries_traversed: u64,
pub io_errors: u64,
pub total_bytes: Option<u64>,
}Expand description
The result of the previous filesystem traversal
Fields§
§tree: TreeA tree representing the entire filestem traversal
root_index: TreeIndexThe top-level node of the tree.
entries_traversed: u64Amount of files or directories we have seen during the filesystem traversal
io_errors: u64Total amount of IO errors encountered when traversing the filesystem
total_bytes: Option<u64>Total amount of bytes seen during the traversal
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Traversal
impl RefUnwindSafe for Traversal
impl Send for Traversal
impl Sync for Traversal
impl Unpin for Traversal
impl UnwindSafe for Traversal
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