Skip to main content

ChildSandboxMethods

Trait 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!

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§