pub fn destroy(id: u64) -> Option<WorldRecord>Expand description
Destroys a world and frees its guest memory.
The vCPU tasks are stopped and joined before the memory is freed: a
task still in flight could otherwise dereference the world’s second-level
tables. A second concurrent call during the close returns None.
The timing aggregates (timing, handler_timing) are plain values owned by
the world: they are dropped with it, so no separate reset is needed and no
snapshot can outlive the world (the snapshot is Copy).