pub struct WalkOutcome {
pub truncated: bool,
/* private fields */
}Expand description
The result of walking one or more roots.
Every collection field (manifests, walk_errors, unrecognized_explicit_paths,
ignored_manifests, broken_manifest_symlinks) is private to this submodule: each one
ultimately surfaces in deps-cli’s terminal/JSON output, built from attacker-controlled
scanned-path content, so the only way to populate them — from anywhere in walk.rs, not
merely from outside the crate — is through the pub(super) push helpers below, a
type-level guarantee a future call site cannot bypass by pushing a raw value directly
(issue #1305, follow-up to #1304’s sanitization chokepoint). Read access is via the
&[...]-returning accessor methods.
Fields§
§truncated: boolWhether super::MAX_WALKED_FILES was reached before the walk finished.
Implementations§
Source§impl WalkOutcome
impl WalkOutcome
Sourcepub fn manifests(&self) -> &[DiscoveredManifest]
pub fn manifests(&self) -> &[DiscoveredManifest]
Every manifest discovered and routed to an ecosystem.
Sourcepub fn walk_errors(&self) -> &[String]
pub fn walk_errors(&self) -> &[String]
Every warning produced while walking — an unreadable path, a symlink loop, a path that could not be resolved to a file URI, …
Sourcepub fn unrecognized_explicit_paths(&self) -> &[PathBuf]
pub fn unrecognized_explicit_paths(&self) -> &[PathBuf]
Every explicitly-given root this run’s ecosystem registry did not recognize.
Sourcepub fn ignored_manifests(&self) -> &[PathBuf]
pub fn ignored_manifests(&self) -> &[PathBuf]
Every manifest-shaped file excluded from the scan without being asked to.
Sourcepub fn broken_manifest_symlinks(&self) -> &[PathBuf]
pub fn broken_manifest_symlinks(&self) -> &[PathBuf]
Every manifest-shaped symlink whose target is not itself a manifest.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WalkOutcome
impl !UnwindSafe for WalkOutcome
impl Freeze for WalkOutcome
impl Send for WalkOutcome
impl Sync for WalkOutcome
impl Unpin for WalkOutcome
impl UnsafeUnpin for WalkOutcome
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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