Enum salvo_core::fuse::flex::GuardAction
source · pub enum GuardAction {
Reject,
ToNext,
Permit,
}
Expand description
A guard action.
Variants§
Reject
Reject the connection.
ToNext
Allow the event to next guards.
Permit
Permit the event and skip next guards.
Trait Implementations§
source§impl Clone for GuardAction
impl Clone for GuardAction
source§fn clone(&self) -> GuardAction
fn clone(&self) -> GuardAction
Returns a copy 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 GuardAction
impl Debug for GuardAction
source§impl Hash for GuardAction
impl Hash for GuardAction
source§impl PartialEq for GuardAction
impl PartialEq for GuardAction
source§fn eq(&self, other: &GuardAction) -> bool
fn eq(&self, other: &GuardAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GuardAction
impl Eq for GuardAction
impl StructuralPartialEq for GuardAction
Auto Trait Implementations§
impl Freeze for GuardAction
impl RefUnwindSafe for GuardAction
impl Send for GuardAction
impl Sync for GuardAction
impl Unpin for GuardAction
impl UnwindSafe for GuardAction
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<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.