#[non_exhaustive]pub enum DefenseResponse {
Proceed,
Observe,
Backoff,
Reconsider,
Halt,
}Expand description
Recommended planner reaction to observed defensive behavior.
Ordering is meaningful: a more restrictive response is greater, so a caller can combine several observations by taking the maximum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Proceed
No defensive reaction was observed; proceed normally.
Observe
Defensive infrastructure is present but nothing was blocked; proceed and record the observation.
Backoff
Rate limiting is in effect; the planner should reduce its request cadence before continuing.
Reconsider
The candidate request provoked a block the control did not; the planner should reconsider its strategy rather than repeat the same request.
Halt
A standing hard block or challenge; the planner should stop this line.
Trait Implementations§
Source§impl Clone for DefenseResponse
impl Clone for DefenseResponse
Source§fn clone(&self) -> DefenseResponse
fn clone(&self) -> DefenseResponse
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 DefenseResponse
Source§impl Debug for DefenseResponse
impl Debug for DefenseResponse
impl Eq for DefenseResponse
Source§impl Ord for DefenseResponse
impl Ord for DefenseResponse
Source§fn cmp(&self, other: &DefenseResponse) -> Ordering
fn cmp(&self, other: &DefenseResponse) -> Ordering
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 PartialEq for DefenseResponse
impl PartialEq for DefenseResponse
Source§impl PartialOrd for DefenseResponse
impl PartialOrd for DefenseResponse
impl StructuralPartialEq for DefenseResponse
Auto Trait Implementations§
impl Freeze for DefenseResponse
impl RefUnwindSafe for DefenseResponse
impl Send for DefenseResponse
impl Sync for DefenseResponse
impl Unpin for DefenseResponse
impl UnsafeUnpin for DefenseResponse
impl UnwindSafe for DefenseResponse
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more