pub fn add_dir_to_namespace(&mut self, path: String, dir: File) -> Result<&mut Self, Error> {
            let handle = fdio::transfer_fd(dir)?;
            let namespace = self.namespace.get_or_insert_with(||
                  Box::new(FlatNamespace {paths: vec![], directories: vec![]}));
            namespace.paths.push(path);
            namespace.directories.push(zx::Channel::from(handle));

            Ok(self)
        }
/// Adds a new directory to the namespace for the new process.
Adds a new directory to the namespace for the new process.
Adds a new directory to the namespace for the new process .
pub fn add_dir_to_namespace(&mut self, path: String, dir: File) -> Result<&mut Self, Error> {
            let handle = fdio::transfer_fd(dir)?;
            let namespace = self.namespace.get_or_insert_with(||
                  Box::new(FlatNamespace {paths: vec![], directories: vec![]}));
            namespace.paths.push(path);
            namespace.directories.push(zx::Channel::from(handle));
            Ok(self)
        }
pub fn add_dir_to_namespace ( & mut self , path : String , dir : File ) -> Result < & mut Self , Error > { let handle = fdio :: transfer_fd ( dir ) ? ; let namespace = self . namespace . get_or_insert_with ( | | Box :: new ( FlatNamespace { paths : vec ! [ ] , directories : vec ! [ ] } ) ) ; namespace . paths . push ( path ) ; namespace . directories . push ( zx :: Channel :: from ( handle ) ) ; Ok ( self ) }
Adds a new directory to the namespace for the new process.
Adds a new directory to the namespace for the new process .
&mut self
path
String
dir
File
&mut self
path
String
dir
File