pub struct Listing {
pub root: PathBuf,
pub root_is_dir: bool,
pub entries: Vec<Entry>,
pub minor_errors: usize,
pub timing: Option<ListTiming>,
}Expand description
A listing produced for one path argument (or recursive tree).
Fields§
§root: PathBufThe path that was requested.
root_is_dir: boolWhether root itself is a directory.
entries: Vec<Entry>Entries to display. For recursive mode, may include dir headers.
minor_errors: usizeRecoverable problems while listing (e.g. unreadable subdirectory). Surfaces as process exit code 1 when non-zero.
timing: Option<ListTiming>Optional phase timings when ListOptions::collect_timing is set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Listing
impl RefUnwindSafe for Listing
impl Send for Listing
impl Sync for Listing
impl Unpin for Listing
impl UnsafeUnpin for Listing
impl UnwindSafe for Listing
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> 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>
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