pub async fn serve_path(
scope: ExecutionScope,
non_meta_storage: impl NonMetaStorage,
meta_far: Hash,
flags: Flags,
path: VfsPath,
server_end: ServerEnd<NodeMarker>,
) -> Result<(), Error>
Expand description
Serves a sub-path
of a package directory for the package with hash meta_far
on server_end
.
The connection rights are set by flags
, used the same as the flags
parameter of
fuchsia.io/Directory.Open.
On error while loading the package metadata, closes the provided server end, sending an OnOpen
response with an error status if requested.