Crate nswrap

Crate nswrap 

Source
Expand description

This crate is aiming at providing an friendly interface of linux container technologies. These technologies include system calls like namespaces(7) and clone(2). It can be use as a low-level library to configure and execute program and closure inside linux containers.

The Wrap follows a similar builder pattern to std::process::Command. In addition, Wrap contains methods to configure linux namespaces, chroots, mount points, and more part specific to linux.

Modules§

config
error
util

Structs§

Child
The reference to the running child.
ExitStatus
Exit status of the child.
Wrap
Main class of spawn process and execute functions.

Type Aliases§

WrapCbBox
Boxed closure to execute in child process