pub enum GovernanceMonitorError {
MissingAttestation,
InvalidAttestation {
signer_did: Did,
},
FindingsDigestEncodingFailed {
reason: String,
},
AttestationMessageEncodingFailed {
reason: String,
},
FindingsDigestMismatch {
signer_did: Did,
},
CircuitBreakerTripped {
critical_count: u64,
threshold: u64,
},
HumanApprovalRequired {
run_id: String,
},
ApproverNotHuman,
}Expand description
Errors from governance monitor validation.
Variants§
MissingAttestation
Attestation signature is missing.
InvalidAttestation
Attestation signature is invalid.
FindingsDigestEncodingFailed
Findings payload could not be canonically encoded for digesting.
AttestationMessageEncodingFailed
Attestation signature message could not be canonically encoded.
FindingsDigestMismatch
Attested digest does not match the actual findings payload.
CircuitBreakerTripped
Circuit breaker has been tripped — too many Critical findings.
Fields
HumanApprovalRequired
Self-improvement trigger requires human approval.
ApproverNotHuman
The approver is not a human DID (SignerType prefix != 0x01).
Trait Implementations§
Source§impl Clone for GovernanceMonitorError
impl Clone for GovernanceMonitorError
Source§fn clone(&self) -> GovernanceMonitorError
fn clone(&self) -> GovernanceMonitorError
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 GovernanceMonitorError
impl Debug for GovernanceMonitorError
Source§impl Display for GovernanceMonitorError
impl Display for GovernanceMonitorError
Source§impl Error for GovernanceMonitorError
impl Error for GovernanceMonitorError
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 GovernanceMonitorError
impl RefUnwindSafe for GovernanceMonitorError
impl Send for GovernanceMonitorError
impl Sync for GovernanceMonitorError
impl Unpin for GovernanceMonitorError
impl UnsafeUnpin for GovernanceMonitorError
impl UnwindSafe for GovernanceMonitorError
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more