pub enum DisruptiveAction {
Deny,
Block,
Pass,
Allow,
AllowPhase,
AllowRequest,
Redirect(String),
Drop,
}Expand description
Disruptive actions.
Variants§
Deny
Deny the request (return status).
Block
Block the request.
Pass
Pass (continue processing).
Allow
Allow (stop processing, allow request).
AllowPhase
Allow current phase.
AllowRequest
Allow current request.
Redirect(String)
Redirect to URL.
Drop
Drop connection.
Trait Implementations§
Source§impl Clone for DisruptiveAction
impl Clone for DisruptiveAction
Source§fn clone(&self) -> DisruptiveAction
fn clone(&self) -> DisruptiveAction
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 DisruptiveAction
impl RefUnwindSafe for DisruptiveAction
impl Send for DisruptiveAction
impl Sync for DisruptiveAction
impl Unpin for DisruptiveAction
impl UnwindSafe for DisruptiveAction
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