pub struct RetainedTransactionAllocation { /* private fields */ }Expand description
Keeps a managed allocation’s resolution owner alive through publication and acknowledgement retries. Dropping the final lease permits provider recovery, but never establishes a physical outcome by itself. The conservative untracked form preserves legacy providers’ manually retained receipt semantics.
Implementations§
Source§impl RetainedTransactionAllocation
impl RetainedTransactionAllocation
pub fn untracked(transaction: StorageTransactionId) -> Self
pub fn retain( transaction: StorageTransactionId, lease: SerializableParticipant, ) -> VersionResult<Self>
pub fn transaction(&self) -> StorageTransactionId
Sourcepub fn has_resolution_lease(&self) -> bool
pub fn has_resolution_lease(&self) -> bool
Whether this owner retains a resolution lease. Providers must also verify their durable managed-owner flag before using lease death to reclaim a receipt.
Auto Trait Implementations§
impl !RefUnwindSafe for RetainedTransactionAllocation
impl !UnwindSafe for RetainedTransactionAllocation
impl Freeze for RetainedTransactionAllocation
impl Send for RetainedTransactionAllocation
impl Sync for RetainedTransactionAllocation
impl Unpin for RetainedTransactionAllocation
impl UnsafeUnpin for RetainedTransactionAllocation
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