pub enum WafMode {
Off,
Report,
Block,
}Expand description
What the engine does with a request that matches a rule.
Variants§
Off
Disabled — WafEngine::evaluate is a no-op. Default.
Report
Evaluate rules and log/count matches, but forward the request anyway.
Block
Reject a matching request with 403 Forbidden.
Trait Implementations§
impl Copy for WafMode
impl Eq for WafMode
impl StructuralPartialEq for WafMode
Auto Trait Implementations§
impl Freeze for WafMode
impl RefUnwindSafe for WafMode
impl Send for WafMode
impl Sync for WafMode
impl Unpin for WafMode
impl UnsafeUnpin for WafMode
impl UnwindSafe for WafMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.