pub enum AnalysisErrorStrategy {
ContinueAndCollect,
AbortOnError,
}Expand description
How AnalyzeBuilder::start() handles a per-entry error mid-walk
(e.g. a permission-denied subdirectory, or a symlink loop under
.follow_symlinks(true)).
Deliberately a smaller enum than planner::ErrorStrategy rather than
reusing it: analysis never writes anything, so Undo has no meaning
here, and ErrorStrategy lives behind the operations feature,
which analyze doesn’t require.
Variants§
ContinueAndCollect
Skip the offending entry, record it in AnalysisReport::errors
(subject to the max_reported_errors cap), and keep walking.
AbortOnError
Stop the walk and return the error from .start()’s Handle
the moment one is encountered.
Trait Implementations§
Source§impl Clone for AnalysisErrorStrategy
impl Clone for AnalysisErrorStrategy
Source§fn clone(&self) -> AnalysisErrorStrategy
fn clone(&self) -> AnalysisErrorStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnalysisErrorStrategy
Source§impl Debug for AnalysisErrorStrategy
impl Debug for AnalysisErrorStrategy
Source§impl Default for AnalysisErrorStrategy
impl Default for AnalysisErrorStrategy
Source§fn default() -> AnalysisErrorStrategy
fn default() -> AnalysisErrorStrategy
Returns the “default value” for a type. Read more
impl Eq for AnalysisErrorStrategy
Source§impl PartialEq for AnalysisErrorStrategy
impl PartialEq for AnalysisErrorStrategy
impl StructuralPartialEq for AnalysisErrorStrategy
Auto Trait Implementations§
impl Freeze for AnalysisErrorStrategy
impl RefUnwindSafe for AnalysisErrorStrategy
impl Send for AnalysisErrorStrategy
impl Sync for AnalysisErrorStrategy
impl Unpin for AnalysisErrorStrategy
impl UnsafeUnpin for AnalysisErrorStrategy
impl UnwindSafe for AnalysisErrorStrategy
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