Trait gaol::sandbox::ChildSandboxMethods

source ·
pub trait ChildSandboxMethods {
    // Required method
    fn activate(&self) -> Result<(), ()>;
}
Expand description

All platform-specific sandboxes in the child process implement this trait.

Required Methods§

source

fn activate(&self) -> Result<(), ()>

Activates the restrictions in this child process from here on out. Be sure to check the return value!

Implementors§