pub enum PolicyError {
EmptyRuleId,
EmptyReason,
NoContributions,
UnregisteredRule(String),
}Expand description
Policy composition error.
Variants§
EmptyRuleId
Rule id was empty.
EmptyReason
Contribution reason was empty.
NoContributions
No contributions were supplied.
UnregisteredRule(String)
A contribution used an unregistered rule id.
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 Eq for PolicyError
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