#[non_exhaustive]pub enum AclClassification {
AllowedUserAcl,
AllowedDefault,
DeniedUserAcl,
DeniedDefault,
Denied(String),
DeniedNotGlobal,
}Expand description
Represents the outcome of an ACL check, and why it was reached.
Every is_*_allowed method on HttpAcl returns one of these instead of a plain
bool, so the reason for an outcome is preserved for logging or error messages.
Use Self::is_allowed or Self::is_denied to collapse it to a bool once you
only care about the outcome.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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 for a custom reason.
Not produced by any built-in check; this exists for a ValidateFn to return
a denial with a human-readable explanation of its own.
DeniedNotGlobal
The IP is denied because it is not global.
Implementations§
Trait Implementations§
Source§impl Clone for AclClassification
impl Clone for AclClassification
Source§fn clone(&self) -> AclClassification
fn clone(&self) -> AclClassification
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more