pub struct Lifecycle {
pub cancel: CancellationToken,
pub finalize_done: Arc<AtomicBool>,
pub ledger: Arc<Mutex<ResourceLedger>>,
}Expand description
Runtime token for cooperative cancel and FINALIZE.
Fields§
§cancel: CancellationTokenCancellation token shared with async tasks.
finalize_done: Arc<AtomicBool>Whether FINALIZE already completed.
ledger: Arc<Mutex<ResourceLedger>>Owned resources for residual cleanup.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lifecycle
impl RefUnwindSafe for Lifecycle
impl Send for Lifecycle
impl Sync for Lifecycle
impl Unpin for Lifecycle
impl UnsafeUnpin for Lifecycle
impl UnwindSafe for Lifecycle
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