pub enum GovernorError {
InvalidRequest(String),
EvaluationFailed(String),
InvalidThreshold(String),
UnsupportedContentType(String),
Internal(String),
}Expand description
Errors that can occur during governance evaluation.
Variants§
InvalidRequest(String)
Invalid request parameters
EvaluationFailed(String)
Policy evaluation failed
InvalidThreshold(String)
Invalid degradation threshold
UnsupportedContentType(String)
Content type not supported
Internal(String)
Internal error
Implementations§
Source§impl GovernorError
impl GovernorError
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Returns true if this is a recoverable error.
Sourcepub fn is_configuration_error(&self) -> bool
pub fn is_configuration_error(&self) -> bool
Returns true if this indicates a system configuration issue.
Trait Implementations§
Source§impl Debug for GovernorError
impl Debug for GovernorError
Source§impl Display for GovernorError
impl Display for GovernorError
Source§impl Error for GovernorError
impl Error for GovernorError
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 GovernorError
impl RefUnwindSafe for GovernorError
impl Send for GovernorError
impl Sync for GovernorError
impl Unpin for GovernorError
impl UnsafeUnpin for GovernorError
impl UnwindSafe for GovernorError
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