Skip to main content

Crate vm_sdk

Crate vm_sdk 

Source

Structs§

AsyncSandbox
Async wrapper around a Hanzo VM VM sandbox.
DirEntry
ExecResult
Result of executing a command in the VM.
ExposeHostMapping
A host port exposed to the guest via host.vm.internal.
GuestStream
A raw bidirectional byte stream to a TCP port inside the guest, established via AsyncSandbox::dial_guest.
MountConfig
NetworkConfig
Network access policy.
ProxyConfig
Configuration for the proxy engine.
ReadDirResponse
SandboxConfig
Configuration for booting a sandbox VM.
SecretConfig
A secret that the proxy injects into HTTP requests.
ShellHandle
Handle to an interactive shell session with PTY support.
ShellReader
Reader half of a shell session. Receives output events asynchronously.
ShellWriter
Writer half of a shell session. Cloneable — used to send input and resize.
StatResponse
WatchEvent
A filesystem watch event. Binary format: [u8 kind][path bytes...]
WatchHandle
Handle to a filesystem watch session. Drop to stop watching.
WatchReceiver
Reader half of a file watch session. Receives filesystem events asynchronously.

Enums§

ShellEvent
Events from an interactive shell session.
StorageMode
Storage backend for the VM’s root disk.

Functions§

default_data_dir
HANZO_VM_HOME, else ~/.hanzo/vm.