/// open_node will return a NodeProxy opened to the node at the given path relative to the
/// given directory, or return an error if no such node exists (or some other FIDL error was
/// encountered). This function will not block.
open_node will return a NodeProxy opened to the node at the given path relative to the
given directory, or return an error if no such node exists (or some other FIDL error was
encountered). This function will not block.
open_node will return a NodeProxy opened to the node at the given path relative to the given directory or return an error if no such node exists ( or some other FIDL error was encountered ) . This function will not block .
pub fn open_node<'a>(
    dir: &'a DirectoryProxy,
    path: &'a PathBuf,
    mode: u32,
) -> Result<NodeProxy, Error> {
    let path = path.to_str().ok_or(err_msg("path is invalid"))?;
    let flags = OPEN_RIGHT_READABLE | OPEN_FLAG_DESCRIBE;
    let (new_node, server_end) = create_proxy()?;
    dir.open(flags, mode, path, server_end)?;
    Ok(new_node)
}
pub fn open_node < ' a > ( dir : & ' a DirectoryProxy , path : & ' a PathBuf , mode : u32 , ) -> Result < NodeProxy , Error > { let path = path . to_str ( ) . ok_or ( err_msg ( " " ) ) ? ; let flags = OPEN_RIGHT_READABLE | OPEN_FLAG_DESCRIBE ; let ( new_node , server_end ) = create_proxy ( ) ? ; dir . open ( flags , mode , path , server_end ) ? ; Ok ( new_node ) }
open_node will return a NodeProxy opened to the node at the given path relative to the
given directory, or return an error if no such node exists (or some other FIDL error was
encountered).
open_node will return a NodeProxy opened to the node at the given path relative to the given directory or return an error if no such node exists ( or some other FIDL error was encountered ) .
dir
&'a DirectoryProxy
path
&'a PathBuf
mode
u32