pub enum DisruptiveOutcome {
Deny(u16),
Block,
Allow,
Redirect(String),
Pass,
Drop,
}Expand description
Outcome of a disruptive action.
Variants§
Deny(u16)
Deny the request with status code.
Block
Block (defer to SecRuleEngine).
Allow
Allow the request.
Redirect(String)
Redirect to URL.
Pass
Pass (continue but mark as matched).
Drop
Drop the connection.
Trait Implementations§
Source§impl Clone for DisruptiveOutcome
impl Clone for DisruptiveOutcome
Source§fn clone(&self) -> DisruptiveOutcome
fn clone(&self) -> DisruptiveOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DisruptiveOutcome
impl RefUnwindSafe for DisruptiveOutcome
impl Send for DisruptiveOutcome
impl Sync for DisruptiveOutcome
impl Unpin for DisruptiveOutcome
impl UnwindSafe for DisruptiveOutcome
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