Module entry

Source
Expand description

Common trait for all the directory entry objects.

Structs§

EntryInfo
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.
OpenRequest
An open request.
SubNode
A sub-node of a directory. This will work with types that implement Directory as well as RemoteDir.

Enums§

RequestFlags
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§

DirectoryEntry
Pseudo directories contain items that implement this trait. Pseudo directories refer to the items they contain as Arc<dyn DirectoryEntry>.
DirectoryEntryAsync
Trait that can be implemented to process open requests asynchronously.
GetEntryInfo
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.