Struct isolated::Process[][src]

pub struct Process { /* fields omitted */ }
Expand description

Offers an API similar to std::process::Child. When dropping, attempts termination and cleanup.

Implementations

Spawns a new process from path with args. layers specify overlayfs layers from outermost to innermost, usually [rootfs, appdir] where rootfs contains a linux root file system like Alpine minirootfs, and appdir is the directory where the application binary is located. All of the layers are overlayed on the root of the container file system. writedir is a directory containing modifications to the file system done by the application. If it is None, then a temporary directory is used instead.

pre_exec, if given, is a closure to be execute after for

TODO: Document restrictions

Wait until the process completes, and return it’s status.

Send a signal to the process. Panics if wait has returned succesfully before.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.