pub fn serve_directory<D: Directory + ?Sized>(
root: Arc<D>,
path: Path,
flags: Flags,
) -> DirectoryProxyExpand description
Helper function to serve a new connection to the directory at path under root with flags.
Errors will be communicated via epitaph on the returned proxy. A new ExecutionScope will be
created for the request.
To serve root itself, use crate::directory::serve or set path to Path::dot.