#[non_exhaustive]pub enum EventError {
ZeroVersion,
EventTypeMismatch,
MissingTarget,
PayloadIdentityMismatch,
TerminalStatusMismatch,
InvalidTerminalResult,
InvalidPlanFingerprint,
InvalidParametersDigest,
}Expand description
Invalid lifecycle event envelope.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroVersion
Event schema versions are one-based.
EventTypeMismatch
The stored event type does not match its tagged payload.
MissingTarget
A lifecycle stage that requires a resolved target omitted it.
PayloadIdentityMismatch
Payload operation identity, name, or target differs from the envelope.
TerminalStatusMismatch
Terminal payload status differs from the event type.
InvalidTerminalResult
The terminal result violates result invariants.
InvalidPlanFingerprint
The embedded plan fingerprint is invalid.
InvalidParametersDigest
Requested parameter digest is not lowercase SHA-256.
Trait Implementations§
Source§impl Clone for EventError
impl Clone for EventError
Source§fn clone(&self) -> EventError
fn clone(&self) -> EventError
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 EventError
impl Debug for EventError
Source§impl Display for EventError
impl Display for EventError
Source§impl Error for EventError
impl Error for EventError
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()
Source§impl PartialEq for EventError
impl PartialEq for EventError
Source§fn eq(&self, other: &EventError) -> bool
fn eq(&self, other: &EventError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EventError
impl StructuralPartialEq for EventError
Auto Trait Implementations§
impl Freeze for EventError
impl RefUnwindSafe for EventError
impl Send for EventError
impl Sync for EventError
impl Unpin for EventError
impl UnsafeUnpin for EventError
impl UnwindSafe for EventError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.