Expand description
zygote is a library to create zygote processes on linux.
A zygote process is a small process used primarily to create new processes,
but can be used for anything that requires running things in a separate process.
To learn more about zygote processes check out these notes on Chromium.
§Getting started
fn main() {
Zygote::init();
let pid = Zygote::global().run(|_| std::process::id(), ());
assert_ne!(pid, std::process::id());
}Structs§
- Wire
Error - A serializable error type.
- WireFd
- Wrapper type that allows sending file descriptors to and from the zygote.
- Zygote
- Representation of a zygote process
Enums§
- Error
- Error type used by
Zygote::try_run()when running a task.