#[non_exhaustive]pub enum AddError {
AlreadyAllowed,
AlreadyDenied,
Invalid,
}Expand description
Represents an error that can occur when adding a new allowed or denied entity to an ACL.
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.
AlreadyAllowed
The entity is already allowed so it cannot be denied.
AlreadyDenied
The entity is already denied so it cannot be allowed.
Invalid
The entity is not allowed or denied because it is invalid.
Trait Implementations§
source§impl Ord for AddError
impl Ord for AddError
source§impl PartialEq for AddError
impl PartialEq for AddError
source§impl PartialOrd for AddError
impl PartialOrd for AddError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for AddError
impl StructuralEq for AddError
impl StructuralPartialEq for AddError
Auto Trait Implementations§
impl RefUnwindSafe for AddError
impl Send for AddError
impl Sync for AddError
impl Unpin for AddError
impl UnwindSafe for AddError
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