pub struct CleanupContract { /* private fields */ }Expand description
Required cleanup proof for process descendants and writable scratch roots.
Implementations§
Source§impl CleanupContract
impl CleanupContract
Sourcepub fn process_group(
scratch_resources: impl IntoIterator<Item = String>,
) -> Result<Self>
pub fn process_group( scratch_resources: impl IntoIterator<Item = String>, ) -> Result<Self>
Requires group kill/reap and names every disposable writable scratch root.
Sourcepub fn scratch_resources(&self) -> &BTreeSet<String>
pub fn scratch_resources(&self) -> &BTreeSet<String>
Returns disposable writable resources that must be empty or removed at closure.
Sourcepub fn canonical_datum(&self) -> Datum
pub fn canonical_datum(&self) -> Datum
Returns the semantic cleanup contract.
Trait Implementations§
Source§impl Clone for CleanupContract
impl Clone for CleanupContract
Source§fn clone(&self) -> CleanupContract
fn clone(&self) -> CleanupContract
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 moreSource§impl Debug for CleanupContract
impl Debug for CleanupContract
impl Eq for CleanupContract
Source§impl PartialEq for CleanupContract
impl PartialEq for CleanupContract
impl StructuralPartialEq for CleanupContract
Auto Trait Implementations§
impl Freeze for CleanupContract
impl RefUnwindSafe for CleanupContract
impl Send for CleanupContract
impl Sync for CleanupContract
impl Unpin for CleanupContract
impl UnsafeUnpin for CleanupContract
impl UnwindSafe for CleanupContract
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