pub enum RequestAction {
Allow,
Block,
Redirect(String),
}Expand description
Action to take for an intercepted request.
Variants§
Allow
Allow the request to proceed.
Block
Block/cancel the request.
Redirect(String)
Redirect to a different URL.
Implementations§
Trait Implementations§
Source§impl Clone for RequestAction
impl Clone for RequestAction
Source§fn clone(&self) -> RequestAction
fn clone(&self) -> RequestAction
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 RequestAction
impl RefUnwindSafe for RequestAction
impl Send for RequestAction
impl Sync for RequestAction
impl Unpin for RequestAction
impl UnwindSafe for RequestAction
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