pub struct EffectPermit { /* private fields */ }Expand description
Evidence that one runtime effect occurrence passed admission.
The permit deliberately owns the selected compensation handler. The tool dispatcher keeps it alive until the call completes, preventing a registry update from removing the rollback path after admission but before the effect finishes.
Implementations§
Source§impl EffectPermit
impl EffectPermit
Sourcepub fn compensation(&self) -> Option<&CompensationHandler>
pub fn compensation(&self) -> Option<&CompensationHandler>
The rollback handler captured for a compensatable occurrence.
Sourcepub fn approval(&self) -> Option<&ApprovalToken>
pub fn approval(&self) -> Option<&ApprovalToken>
The one-shot approval consumed for an irreversible occurrence.
Trait Implementations§
Source§impl Clone for EffectPermit
impl Clone for EffectPermit
Source§fn clone(&self) -> EffectPermit
fn clone(&self) -> EffectPermit
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for EffectPermit
impl !UnwindSafe for EffectPermit
impl Freeze for EffectPermit
impl Send for EffectPermit
impl Sync for EffectPermit
impl Unpin for EffectPermit
impl UnsafeUnpin for EffectPermit
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