Skip to main content

SandboxHandle

Trait SandboxHandle 

Source
pub trait SandboxHandle:
    Send
    + Sync
    + Debug {
    // Required method
    fn as_any(&self) -> &dyn Any;
}
Expand description

Opaque handle stored on each PodSandbox.

Backends stash runtime-specific state (hypervisor handles, PIDs, machine names, …) here. Callers can downcast via as_any() when they know the concrete type.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Implementors§