pub enum GovernanceError {
Backend(String),
Other(String),
}Expand description
Error returned by Governance::review.
Use Self::Backend when the rules engine itself fails (database
down, rule compile error) — that’s distinct from a clean Rejected
verdict. Bubble up via crate::error::BriefError at the builder
layer.
Variants§
Trait Implementations§
Source§impl Debug for GovernanceError
impl Debug for GovernanceError
Source§impl Display for GovernanceError
impl Display for GovernanceError
Source§impl Error for GovernanceError
impl Error for GovernanceError
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()
Auto Trait Implementations§
impl Freeze for GovernanceError
impl RefUnwindSafe for GovernanceError
impl Send for GovernanceError
impl Sync for GovernanceError
impl Unpin for GovernanceError
impl UnsafeUnpin for GovernanceError
impl UnwindSafe for GovernanceError
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