#[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 Error for AddError
impl Error for AddError
1.81.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.81.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Ord for AddError
impl Ord for AddError
source§impl PartialOrd for AddError
impl PartialOrd for AddError
impl Eq for AddError
impl StructuralPartialEq for AddError
Auto Trait Implementations§
impl Freeze for AddError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)