pub fn process_entry<'async_recursion, V>(
visitor: Arc<V>,
cx: EntryCx,
parent_ctx: V::DirContext,
permit: Option<LeafPermit>,
) -> Pin<Box<dyn Future<Output = Result<V::Summary, OperationError<V::Summary>>> + Send + 'async_recursion>>where
V: WalkVisitor + 'async_recursion,Expand description
Process one already-located entry: classify it authoritatively via
Dir::child, then dispatch.
- Non-directory: call
WalkVisitor::visit_leafholdingpermit. - Directory:
drop(permit)— the one and only drop-before-recurse site — thenWalkVisitor::dir_pre; onDirAction::Descend, walk the contents viawalk_dir_contents(threading the child context) and finish withWalkVisitor::dir_post.
parent_ctx is the inherited context of the directory that contains this
entry. cx.parent must be that (hardened) directory. On a classification
error the entry’s own error is surfaced — the same fail-closed behavior the
per-tool walks have.