pub enum HandlerDecision {
Allow,
Block {
status: u16,
body: Bytes,
},
}Expand description
Decision returned by InterceptHandler::on_request.
Variants§
Trait Implementations§
Source§impl Clone for HandlerDecision
impl Clone for HandlerDecision
Source§fn clone(&self) -> HandlerDecision
fn clone(&self) -> HandlerDecision
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 moreSource§impl Debug for HandlerDecision
impl Debug for HandlerDecision
Source§impl PartialEq for HandlerDecision
impl PartialEq for HandlerDecision
impl Eq for HandlerDecision
impl StructuralPartialEq for HandlerDecision
Auto Trait Implementations§
impl !Freeze for HandlerDecision
impl RefUnwindSafe for HandlerDecision
impl Send for HandlerDecision
impl Sync for HandlerDecision
impl Unpin for HandlerDecision
impl UnsafeUnpin for HandlerDecision
impl UnwindSafe for HandlerDecision
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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,
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.