pub struct SealedDeclarationSnapshot { /* private fields */ }Expand description
SealedDeclarationSnapshot
Immutable, canonical linked-program allocation declarations and range
authority supplied to each concrete crate::MemoryRuntime.
Sealing runs generated registration hooks and eager declaration hooks exactly once. Clones share the same immutable snapshot. This value contains declaration authority only; it contains no memory handles, recovery state, bootstrap lifecycle, or committed allocation capability.
Implementations§
Source§impl SealedDeclarationSnapshot
impl SealedDeclarationSnapshot
Sourcepub fn new(
declarations: &[StaticMemoryDeclaration],
ranges: &[StaticMemoryRangeDeclaration],
requests: &[MemoryRequest],
) -> Result<Self, StaticMemoryDeclarationError>
pub fn new( declarations: &[StaticMemoryDeclaration], ranges: &[StaticMemoryRangeDeclaration], requests: &[MemoryRequest], ) -> Result<Self, StaticMemoryDeclarationError>
Seal explicitly owned inputs with the same rules as the linked registry.
Sourcepub fn requests(&self) -> &[MemoryRequest]
pub fn requests(&self) -> &[MemoryRequest]
Borrow canonical unresolved key-only requests.
Sourcepub fn allocation_snapshot(&self) -> &DeclarationSnapshot
pub fn allocation_snapshot(&self) -> &DeclarationSnapshot
Borrow fixed declarations, including runtime governance. Key-only requests are resolved by the runtime after recovery; inspect committed allocations for the complete resolved set.
Sourcepub fn registered_declarations(&self) -> &[StaticMemoryDeclaration]
pub fn registered_declarations(&self) -> &[StaticMemoryDeclaration]
Borrow canonical external declarations registered by linked code.
Sourcepub fn registered_ranges(&self) -> &[StaticMemoryRangeDeclaration]
pub fn registered_ranges(&self) -> &[StaticMemoryRangeDeclaration]
Borrow canonical external range declarations registered by linked code.
Borrow the effective range authority, including runtime governance.
Sourcepub fn fingerprint(&self) -> SealedDeclarationFingerprint
pub fn fingerprint(&self) -> SealedDeclarationFingerprint
Return the deterministic fingerprint of this sealed declaration meaning.
Trait Implementations§
Source§impl Clone for SealedDeclarationSnapshot
impl Clone for SealedDeclarationSnapshot
Source§fn clone(&self) -> SealedDeclarationSnapshot
fn clone(&self) -> SealedDeclarationSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more