pub enum RiskLevel {
Safe,
MethodDestructive,
OperationDestructive,
}Expand description
Risk classification for a probing strategy.
Controls whether a strategy is eligible for execution given the operator’s
max_risk ceiling in ScanContext. Variants are ordered from safest to most
destructive so that <= comparisons work correctly for ceiling enforcement.
Variants§
Safe
Read-only probing. No state mutation; safe on any target.
MethodDestructive
Uses non-idempotent HTTP methods (e.g. POST, PATCH, PUT) that may have side-effects, but the strategy avoids permanent data loss.
OperationDestructive
May trigger irreversible server-side state changes (e.g. DELETE, account closure, resource exhaustion).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RiskLevel
impl<'de> Deserialize<'de> for RiskLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for RiskLevel
impl Ord for RiskLevel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RiskLevel
impl PartialOrd for RiskLevel
impl Copy for RiskLevel
impl Eq for RiskLevel
impl StructuralPartialEq for RiskLevel
Auto Trait Implementations§
impl Freeze for RiskLevel
impl RefUnwindSafe for RiskLevel
impl Send for RiskLevel
impl Sync for RiskLevel
impl Unpin for RiskLevel
impl UnsafeUnpin for RiskLevel
impl UnwindSafe for RiskLevel
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