pub enum PolicyRegistryError {
NotFound(String),
StandardPolicyProtected,
ValidationFailed(Vec<String>),
}Expand description
Errors from PolicyRegistry operations.
Variants§
NotFound(String)
The requested policy name is not registered.
StandardPolicyProtected
Cannot remove or overwrite the built-in standard policy.
ValidationFailed(Vec<String>)
The policy failed validation.
Trait Implementations§
Source§impl Clone for PolicyRegistryError
impl Clone for PolicyRegistryError
Source§fn clone(&self) -> PolicyRegistryError
fn clone(&self) -> PolicyRegistryError
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 PolicyRegistryError
impl Debug for PolicyRegistryError
Source§impl Display for PolicyRegistryError
impl Display for PolicyRegistryError
Source§impl Error for PolicyRegistryError
impl Error for PolicyRegistryError
1.30.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.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PolicyRegistryError
impl PartialEq for PolicyRegistryError
impl Eq for PolicyRegistryError
impl StructuralPartialEq for PolicyRegistryError
Auto Trait Implementations§
impl Freeze for PolicyRegistryError
impl RefUnwindSafe for PolicyRegistryError
impl Send for PolicyRegistryError
impl Sync for PolicyRegistryError
impl Unpin for PolicyRegistryError
impl UnsafeUnpin for PolicyRegistryError
impl UnwindSafe for PolicyRegistryError
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.