pub enum Resolution {
Applied {
output: Option<Value>,
},
NotApplied,
Retry,
Compensated,
}Expand description
An operator’s decision about an effect the runtime could not resolve.
Variants§
Applied
The effect applied. output becomes its result for every later call,
so it should deserialize into the type those calls expect.
NotApplied
The effect did not apply. It ends Failed, with the operator’s note
as its error.
Retry
Running the effect again is safe. The next call runs it, even if its retry budget is spent, since this is an explicit decision. On a failed compensation: try the compensation again.
Compensated
For a failed compensation: the operator undid the effect by hand. It
ends Compensated.
Implementations§
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§impl Debug for Resolution
impl Debug for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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