pub fn open_channel_in_namespace(
path: &str,
flags: Flags,
request: ServerEnd<DirectoryMarker>,
) -> Result<(), OpenError>
Expand description
Asynchronously opens the given [path
] in the current namespace, serving the connection
over [request
]. Once the channel is connected, any calls made prior are serviced.
To connect to a filesystem node which doesn’t implement fuchsia.io.Directory, use the
functions in [fuchsia_component::client
] instead.
If the namespace path doesn’t exist, this returns an error. However, if incorrect flags are
sent, or if the rest of the path sent to the filesystem server doesn’t exist, this will
still return success. Instead, the [request
] channel will be closed with an epitaph.