/// clone_directory will create a clone of the given DirectoryProxy by calling its clone function.
/// This function will not block.
clone_directory will create a clone of the given DirectoryProxy by calling its clone function.
This function will not block.
clone_directory will create a clone of the given DirectoryProxy by calling its clone function . This function will not block .
pub fn clone_directory(dir: &DirectoryProxy) -> Result<DirectoryProxy, Error> {
    let (node_clone, server_end) = create_proxy()?;
    dir.clone(OPEN_RIGHT_READABLE | OPEN_FLAG_DESCRIBE, server_end)?;
    node_to_directory(node_clone)
}
pub fn clone_directory ( dir : & DirectoryProxy ) -> Result < DirectoryProxy , Error > { let ( node_clone , server_end ) = create_proxy ( ) ? ; dir . clone ( OPEN_RIGHT_READABLE | OPEN_FLAG_DESCRIBE , server_end ) ? ; node_to_directory ( node_clone ) }
clone_directory will create a clone of the given DirectoryProxy by calling its clone function.
clone_directory will create a clone of the given DirectoryProxy by calling its clone function .
dir
&DirectoryProxy