pub enum ConnectionAction {
Allow,
Deny,
}Expand description
访问控制动作类型
定义了当规则匹配时应该执行的动作。
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ConnectionAction
impl Clone for ConnectionAction
Source§fn clone(&self) -> ConnectionAction
fn clone(&self) -> ConnectionAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConnectionAction
Source§impl Debug for ConnectionAction
impl Debug for ConnectionAction
Source§impl<'de> Deserialize<'de> for ConnectionAction
impl<'de> Deserialize<'de> for ConnectionAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConnectionAction
impl Display for ConnectionAction
impl Eq for ConnectionAction
Source§impl PartialEq for ConnectionAction
impl PartialEq for ConnectionAction
Source§fn eq(&self, other: &ConnectionAction) -> bool
fn eq(&self, other: &ConnectionAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConnectionAction
impl Serialize for ConnectionAction
impl StructuralPartialEq for ConnectionAction
Auto Trait Implementations§
impl Freeze for ConnectionAction
impl RefUnwindSafe for ConnectionAction
impl Send for ConnectionAction
impl Sync for ConnectionAction
impl Unpin for ConnectionAction
impl UnsafeUnpin for ConnectionAction
impl UnwindSafe for ConnectionAction
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