pub fn add_dir_to_namespace(mut self, path: String, dir: File) -> Result<Self, Error> {
        let handle = fdio::transfer_fd(dir)?;
        let namespace = self
            .launch_info
            .flat_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)
    }
/// Mounts an opened directory in the namespace of the component.
Mounts an opened directory in the namespace of the component.
Mounts an opened directory in the namespace of the component .
pub fn add_dir_to_namespace(mut self, path: String, dir: File) -> Result<Self, Error> {
        let handle = fdio::transfer_fd(dir)?;
        let namespace = self
            .launch_info
            .flat_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 < Self , Error > { let handle = fdio :: transfer_fd ( dir ) ? ; let namespace = self . launch_info . flat_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 ) }
Mounts an opened directory in the namespace of the component.
Mounts an opened directory in the namespace of the component .
mut self
path
String
dir
File
mut self
path
String
dir
File