#[non_exhaustive]pub enum AclClassification {
AllowedUserAcl,
AllowedDefault,
DeniedUserAcl,
DeniedDefault,
Denied(String),
DeniedNotGlobal,
DeniedPrivateRange,
}
Expand description
Represents an ACL Classification.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AllowedUserAcl
The entity is allowed according to the allowed ACL.
AllowedDefault
The entity is allowed because the default is to allow if no ACL match is found.
DeniedUserAcl
The entity is denied according to the denied ACL.
DeniedDefault
The entity is denied because the default is to deny if no ACL match is found.
Denied(String)
The entity is denied.
DeniedNotGlobal
The IP is denied because it is not global.
DeniedPrivateRange
The IP is denied because it is in a private range.
Implementations§
Trait Implementations§
Source§impl Clone for AclClassification
impl Clone for AclClassification
Source§fn clone(&self) -> AclClassification
fn clone(&self) -> AclClassification
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 AclClassification
impl Debug for AclClassification
Source§impl Display for AclClassification
impl Display for AclClassification
Source§impl Hash for AclClassification
impl Hash for AclClassification
Source§impl Ord for AclClassification
impl Ord for AclClassification
Source§fn cmp(&self, other: &AclClassification) -> Ordering
fn cmp(&self, other: &AclClassification) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AclClassification
impl PartialEq for AclClassification
Source§impl PartialOrd for AclClassification
impl PartialOrd for AclClassification
impl Eq for AclClassification
impl StructuralPartialEq for AclClassification
Auto Trait Implementations§
impl Freeze for AclClassification
impl RefUnwindSafe for AclClassification
impl Send for AclClassification
impl Sync for AclClassification
impl Unpin for AclClassification
impl UnwindSafe for AclClassification
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