Crate package_directory
source ·Structs§
- An execution scope that is hosting tasks for a group of connections. See the module level documentation for details.
- The root directory of Fuchsia package.
RootDirCache
is a cache ofArc<RootDir>
s indexed by their hash. The cache internally storesWeak<RootDir>
s and installs a customdropper
in its managedRootDir
s that removes the corresponding entry when dropped, so it is a cache ofArc<RootDir>
s that are actively in use by its clients. This is useful for deduplicating theArc<RootDir>
s used by VFS to serve package directory connections while also keeping track of which connections are open.
Enums§
Traits§
- The storage that provides the non-meta files (accessed by hash) of a package-directory (e.g. blobfs).
- RootDir takes an optional
OnRootDirDrop
value that will be dropped when the RootDir is dropped.
Functions§
- Serves a package directory for the package with hash
meta_far
onserver_end
. The connection rights are set byflags
, used the same as theflags
parameter of fuchsia.io/Directory.Open. - Serves a sub-
path
of a package directory for the package with hashmeta_far
onserver_end
. The connection rights are set byflags
, used the same as theflags
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.