Skip to main content

Module sandbox

Module sandbox 

Source
Expand description

Sandbox abstraction (feature sandbox): a session that reads and writes files and runs commands on behalf of tools.

Only the trait and LocalProcessSandbox (which offers no isolation and exists for tests and examples) live here; real sandboxes are provided by applications or separate crates.

Structs§

LocalProcessSandbox
A Sandbox backed by the local file system and shell.
ProcessOptions
Options for running a command.
ProcessResult
Result of a completed command.
ReadFileOptions
Options for reading a file.
ReadTextFileOptions
Options for reading a text file.
WriteFileOptions
Options for writing a file; C is the payload type.

Traits§

Sandbox
A sandbox session.
SandboxProcess
A running process started with Sandbox::spawn.

Type Aliases§

ByteStream
Byte stream of file or process output.