#[non_exhaustive]pub enum ScannerError {
Show 15 variants
NetworkError(String),
UrlParseError(String),
PayloadGenerationError(String),
PhaseTimeout,
TaskJoinFailed,
Cancelled,
BudgetExceeded(RuntimeLimitExceeded),
InvalidDiscoveryLimits,
InvalidVerificationLimits,
DiscoveryStateLimitExceeded,
InvalidLegacyVerificationReport,
LegacyVerificationStateLimitExceeded,
InvalidTarget,
IoError(Error),
RunReport(RunReportError),
}Expand description
Scanner error types with detailed context
§Variants
NetworkError: HTTP client, connection, or response parsing failuresUrlParseError: Invalid URL format or schemePayloadGenerationError: Malformed payload generation parametersPhaseTimeout: Scanning phase exceeded timeout thresholdTaskJoinFailed: A structurally owned scanner worker failed to joinCancelled: Host cancellation stopped bounded legacy transportBudgetExceeded: A bounded legacy resource threshold stopped workInvalidDiscoveryLimits: A discovery policy is incoherent or too largeInvalidVerificationLimits: A verification policy is incoherent or too largeDiscoveryStateLimitExceeded: A staged state transition exceeds retention boundsInvalidLegacyVerificationReport: A legacy phase attempted to bypass claim policyLegacyVerificationStateLimitExceeded: Verification outcome retention is exhaustedInvalidTarget: Target URL doesn’t meet validation requirementsIoError: File system or I/O operation failures
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NetworkError(String)
Network I/O failures with detailed error message
UrlParseError(String)
URL parsing failures with detailed error message
PayloadGenerationError(String)
Payload generation failures with detailed error message
PhaseTimeout
Phase execution timeout
TaskJoinFailed
A structurally owned worker task failed to join.
Deliberately carries no [tokio::task::JoinError] or panic payload so
target-controlled panic details cannot cross the scanner boundary.
Cancelled
Host cancellation stopped bounded legacy transport.
BudgetExceeded(RuntimeLimitExceeded)
A shared bounded legacy resource limit denied or stopped work.
InvalidDiscoveryLimits
Discovery limits are zero, inconsistent, or exceed hard bounds.
InvalidVerificationLimits
Verification limits are zero, inconsistent, or exceed hard bounds.
DiscoveryStateLimitExceeded
A staged discovery update exceeded a deterministic state bound.
InvalidLegacyVerificationReport
A corrected legacy phase supplied a report outside the constrained active, knowledge-only, manual-review bridge.
LegacyVerificationStateLimitExceeded
Accepted legacy verification outcomes exceeded the report bound.
InvalidTarget
Target validation failure
IoError(Error)
File I/O operation failure
RunReport(RunReportError)
Typed run report construction failed closed.
Trait Implementations§
Source§impl Debug for ScannerError
impl Debug for ScannerError
Source§impl Display for ScannerError
impl Display for ScannerError
Source§impl Error for ScannerError
impl Error for ScannerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()