// Utility function to open a new node connection under |dir|.
// Does not validate the node connection after opening.
Utility function to open a new node connection under |dir|.
Does not validate the node connection after opening.
Utility function to open a new node connection under |dir| . Does not validate the node connection after opening .
pub fn open_file(
    dir: &DirectoryProxy,
    flags: u32,
    mode: u32,
    path: &str,
) -> Result<FileProxy, Error> {
    let (client_end, server_end) = create_proxy::<FileMarker>().expect("create_proxy failed");
    dir.open(flags, mode, path, ServerEnd::new(server_end.into_channel()))?;
    Ok(client_end)
}
pub fn open_file ( dir : & DirectoryProxy , flags : u32 , mode : u32 , path : & str , ) -> Result < FileProxy , Error > { let ( client_end , server_end ) = create_proxy :: < FileMarker > ( ) . expect ( " " ) ; dir . open ( flags , mode , path , ServerEnd :: new ( server_end . into_channel ( ) ) ) ? ; Ok ( client_end ) }
Utility function to open a new node connection under |dir|.
Utility function to open a new node connection under |dir| .
dir
&DirectoryProxy
flags
u32
mode
u32
path
&str