dope-core 0.76.0

Owned native I/O and completion driver for dope
Documentation
//! Native quiescence and retirement owned by the enclosing driver scope.

use std::mem;

/// Native retirement has succeeded for the exact generation being ended.
pub(super) struct Closed {
    pub(super) _seal: (),
}

impl Closed {
    pub(super) fn reclaim(self, arena: &mut crate::driver::ReceiveArena) {
        // SAFETY: this proof follows native retirement and every generative loan.
        // Runtime still retains the exact arena, mapping and original paying budgets.
        unsafe { arena.refund_ended() };
    }
}

const _: () = {
    assert!(mem::size_of::<Closed>() == 0);
};