pub enum ClosureStateRestore {
Clear,
Owed {
debt: WideResourceVector,
edge: StoredEdgeRestore,
},
}Expand description
Raw closure state; a stored edge always carries a raw nonzero debt vector.
Variants§
Clear
No edge and zero debt.
Owed
One exact stored edge and raw componentwise debt.
Fields
§
debt: WideResourceVectorRaw debt, validated nonzero during restoration.
§
edge: StoredEdgeRestoreExact edge and required predecessor provenance.
Implementations§
Source§impl ClosureStateRestore
impl ClosureStateRestore
Sourcepub fn restore(self) -> Result<ClosureState, StorageRestoreError>
pub fn restore(self) -> Result<ClosureState, StorageRestoreError>
Validates and rebuilds one closure state.
§Errors
Returns StorageRestoreError for zero owed debt, an invalid range, or
any opaque edge whose supplied predecessor provenance does not match.
Trait Implementations§
Source§impl Clone for ClosureStateRestore
impl Clone for ClosureStateRestore
Source§fn clone(&self) -> ClosureStateRestore
fn clone(&self) -> ClosureStateRestore
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 moreimpl Copy for ClosureStateRestore
Source§impl Debug for ClosureStateRestore
impl Debug for ClosureStateRestore
impl Eq for ClosureStateRestore
Source§impl PartialEq for ClosureStateRestore
impl PartialEq for ClosureStateRestore
impl StructuralPartialEq for ClosureStateRestore
Auto Trait Implementations§
impl Freeze for ClosureStateRestore
impl RefUnwindSafe for ClosureStateRestore
impl Send for ClosureStateRestore
impl Sync for ClosureStateRestore
impl Unpin for ClosureStateRestore
impl UnsafeUnpin for ClosureStateRestore
impl UnwindSafe for ClosureStateRestore
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