#[non_exhaustive]pub enum Notice {
Claimed(Option<Claim>),
Executed(Outcome),
ExecutionFailed,
Settled,
}Expand description
A report a runtime feeds back after performing a Directive.
#[non_exhaustive]: this advanced-tier protocol may gain notices, so a
consumer’s match must carry a wildcard arm.
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.
Claimed(Option<Claim>)
Result of a claim: a claim if one was available, else none.
Executed(Outcome)
An execution produced a lifecycle outcome.
ExecutionFailed
The execution infrastructure failed to run the pact — the executor produced no outcome. The kernel fabricates no outcome for this notice: it settles nothing and reaches an unsettled terminal, leaving the claim to lapse and be reclaimed, while the runtime surfaces the error to its caller.
Settled
A settlement was persisted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notice
impl RefUnwindSafe for Notice
impl Send for Notice
impl Sync for Notice
impl Unpin for Notice
impl UnsafeUnpin for Notice
impl UnwindSafe for Notice
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