pub struct ListOutcome {
pub listings: Vec<Listing>,
pub path_errors: Vec<Error>,
pub minor_errors: usize,
}Expand description
Outcome of listing one or more path arguments.
Fields§
§listings: Vec<Listing>§path_errors: Vec<Error>Errors for command-line path arguments that could not be listed.
minor_errors: usizeSum of recoverable errors inside successful listings (e.g. unreadable subdirs).
Implementations§
Source§impl ListOutcome
impl ListOutcome
Sourcepub fn exit_code(&self) -> i32
pub fn exit_code(&self) -> i32
GNU-aligned exit status: 0 ok, 1 minor problems, 2 serious (bad path args).
Sourcepub fn total_timing(&self) -> ListTiming
pub fn total_timing(&self) -> ListTiming
Aggregate phase timings across successful listings.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ListOutcome
impl !UnwindSafe for ListOutcome
impl Freeze for ListOutcome
impl Send for ListOutcome
impl Sync for ListOutcome
impl Unpin for ListOutcome
impl UnsafeUnpin for ListOutcome
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