pub struct CompensationContext { /* private fields */ }Expand description
What a compensation attempt knows about the effect it undoes.
Implementations§
Source§impl CompensationContext
impl CompensationContext
Sourcepub fn idempotency_key(&self) -> IdempotencyKey
pub fn idempotency_key(&self) -> IdempotencyKey
The key to forward to the remote system for the undo. Stable across compensation attempts and distinct from the effect’s own key.
Trait Implementations§
Source§impl Clone for CompensationContext
impl Clone for CompensationContext
Auto Trait Implementations§
impl Freeze for CompensationContext
impl RefUnwindSafe for CompensationContext
impl Send for CompensationContext
impl Sync for CompensationContext
impl Unpin for CompensationContext
impl UnsafeUnpin for CompensationContext
impl UnwindSafe for CompensationContext
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