#[non_exhaustive]pub enum AclError {
InvalidName,
DuplicateName,
UnknownRight {
entry: Option<usize>,
at: usize,
},
TooManyRights,
TooManyEntries,
DenyNotAllowed {
entry: usize,
},
PrincipalNotAllowed {
entry: usize,
},
ModeMismatch,
TooDeep,
Cycle,
Store(ProviderError),
}Expand description
Why a schema, an ACL or a walk could not be used. Messages give positions, never the names or values involved.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidName
A right or alias name is empty or holds a control character.
DuplicateName
A schema defines a name twice.
UnknownRight
A name the schema does not define: in entry entry (or in a list given directly,
None), at position at of its names.
Fields
TooManyRights
A schema defines more rights than Limits::rights.
TooManyEntries
An ACL holds more entries than Limits::entries.
DenyNotAllowed
Entry entry is a deny in a mode that has none (Additive, Posix,
MostSpecific).
PrincipalNotAllowed
Entry entry names a principal its mode does not take: Mask outside Posix, a
second Mask in force (or a second inherit-only one), Authenticated in Posix.
ModeMismatch
A walk met an ACL that is not in MostSpecific mode.
TooDeep
A walk went past Limits::depth levels.
Cycle
An item is its own ancestor.
Store(ProviderError)
The store could not answer: “could not find out”, never a denial.
Trait Implementations§
Source§impl Error for AclError
impl Error for AclError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()