Expand description
Common trait for all the directory entry objects.
Structs§
- Entry
Info - Information about a directory entry, used to populate ReadDirents() output. The first element is the inode number, or INO_UNKNOWN (from fuchsia.io) if not set, and the second element is one of the DIRENT_TYPE_* constants defined in the fuchsia.io.
- Open
Request - An open request.
- SubNode
- A sub-node of a directory. This will work with types that implement Directory as well as RemoteDir.
Enums§
- Request
Flags - Wraps flags used for open requests based on which fuchsia.io/Directory.Open method was used.
Used to delegate
OpenRequest
to the corresponding method when the entry is opened.
Traits§
- Directory
Entry - Pseudo directories contain items that implement this trait. Pseudo directories refer to the
items they contain as
Arc<dyn DirectoryEntry>
. - Directory
Entry Async - Trait that can be implemented to process open requests asynchronously.
- GetEntry
Info - Give useful information about the entry, for example, the directory entry type.
Functions§
- serve_
directory - Serves a directory with the given rights. Returns a client end. This takes a DirectoryEntry so that it works for remotes.