pub enum PolicyError {
InvalidDocument,
UnknownAction,
EvaluationFailed,
}Expand description
Errors produced during policy loading or evaluation.
All variants are heap-free so PolicyError can be used in bare no_std
contexts that have no alloc.
Variants§
InvalidDocument
The supplied PolicyDocument is structurally invalid.
UnknownAction
The GovernanceAction variant is not recognized by this evaluator.
EvaluationFailed
The evaluator encountered an internal error during evaluation.
Trait Implementations§
Source§impl Clone for PolicyError
impl Clone for PolicyError
Source§fn clone(&self) -> PolicyError
fn clone(&self) -> PolicyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PolicyError
impl Debug for PolicyError
Source§impl PartialEq for PolicyError
impl PartialEq for PolicyError
Source§fn eq(&self, other: &PolicyError) -> bool
fn eq(&self, other: &PolicyError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolicyError
Auto Trait Implementations§
impl Freeze for PolicyError
impl RefUnwindSafe for PolicyError
impl Send for PolicyError
impl Sync for PolicyError
impl Unpin for PolicyError
impl UnsafeUnpin for PolicyError
impl UnwindSafe for PolicyError
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