Struct stemjail::jail::Jail [] [src]

pub struct Jail<'a> {
    // some fields omitted
}

Methods

impl<'a> Jail<'a>

fn new(jdom: JailDom, tmps: Vec<TmpfsMount>, confined: bool) -> Jail

fn is_confined(&self) -> bool

fn gain_access(&mut self, acl: Vec<FileAccess>) -> Result<Vec<AccessData>, ()>

fn import_bind(&self, bind: &BindMount) -> Result<()>

fn run<T>(&mut self, run: T, args: &Vec<String>, stdio: Option<SessionIo>) where T: AsRef<Path>

fn get_stdio(&self) -> &Option<SessionIo>

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

Trait Implementations

impl<'a> AsRef<JailDom> for Jail<'a>

fn as_ref(&self) -> &JailDom