pub struct InstanceCap {
pub image_hash_chain: CapHash,
pub image_hash: CapHash,
pub root_cnode: CapHashOrRef,
pub rw_overlays: Vec<RwOverlay>,
pub mem_size: u32,
pub regs: [u64; 13],
pub pc: u64,
pub gas_remaining: u64,
}Fields§
§image_hash_chain: CapHashCumulative chain hash identifying the Instance’s type.
image_hash: CapHashHash of the Image cap currently bound. Always content- addressed (Images are immutable).
root_cnode: CapHashOrRefReference to the root cnode. Hash when clean / not yet
promoted for mutation; Ref while the running Instance is
mutating it via CoW.
rw_overlays: Vec<RwOverlay>Mutable byte overlays per memory mapping. Each entry’s
start matches one of the Image’s MemoryMapping.start
values; bytes is the per-instance content (initial state
at boot, then evolves under JIT writes).
mem_size: u32Total addressable memory size for the Instance.
regs: [u64; 13]PVM register file (φ[0]..φ[12]).
pc: u64Current PC. Zero between calls; updated to entry_pc at invoke start and to the post-execution PC on HALT.
gas_remaining: u64Gas left after the last call, for callers that want to observe residual gas. Set to 0 between calls in V1.
Trait Implementations§
Source§impl Clone for InstanceCap
impl Clone for InstanceCap
Source§fn clone(&self) -> InstanceCap
fn clone(&self) -> InstanceCap
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more