/// Implement arguments for Runc binary.
Implement arguments for Runc binary.
Implement arguments for Runc binary .
fn args(&self) -> Result<Vec<String>> {
        let mut args: Vec<String> = Vec::new();
        if let Some(root) = self.root.clone() {
            args.push(String::from("--root"));
            args.push(
                root.canonicalize()
                    .context(InvalidPathError {})?
                    .to_string_lossy()
                    .parse()
                    .unwrap(),
            )
        }
        if self.rootless {
            args.push(format!("--rootless={}", self.rootless))
        }
        if self.debug {
            args.push(String::from("--debug"));
        }
        Ok(args)
    }
fn args ( & self ) -> Result < Vec < String > > { let mut args : Vec < String > = Vec :: new ( ) ; if let Some ( root ) = self . root . clone ( ) { args . push ( String :: from ( " " ) ) ; args . push ( root . canonicalize ( ) . context ( InvalidPathError { } ) ? . to_string_lossy ( ) . parse ( ) . unwrap ( ) , ) } if self . rootless { args . push ( format ! ( " " self rootless ) ) } if self . debug { args . push ( String :: from ( " " ) ) ; } Ok ( args ) }
Implement arguments for Runc binary.
Implement arguments for Runc binary .
&self