pub const FN_ID_NUB_PUT_CAP: u32 = 4;Expand description
fn_id for the heap-resident cap directory put_cap RPC.
Payload: rkyv-archived javm_cap::Cap. Guest validates and
materialises via [rkyv::access] + [rkyv::deserialize], computes
the cap’s content hash, inserts into the guest-resident CACHE
(a resident CacheDirectory<FixedState, CachedCap> holding
HashMap<CapHash, Arc<CachedCap>> in talc heap), and replies with the
rkyv-archived CapHash (raw
32 bytes). The host’s MultiUseSandbox::put_cap propagates a
CapHasRefError from javm_cap if any slot still holds a Ref.