Expand description
Module holding different kinds of pseudo directories and their building blocks.
Modules§
- common
- Common utilities used by several directory implementations.
- dirents_
sink - Types that help describe
get_entry_namescallback for the lazy directories. - entry
- Common trait for all the directory entry objects.
- entry_
container EntryContaineris a trait implemented by directories that allow manipulation of their content.- helper
- immutable
- Directories that live in this module are “immutable” from the client standpoint. Even over a connection with the write access, clients may not rename, delete or link entries in these directories.
- mutable
- Directories that live in this module are “mutable” from the client standpoint. Their nested entries can be modified by the clients, such as renamed, deleted, linked, or new entries can be created.
- read_
dirents - A sink that can consume directory entry information, encoding them as expected by
fuchsia.ioDirectory::ReadDirentsresult. - simple
- This is an implementation of “simple” pseudo directories.
Use
crate::directory::immutable::Simple::new()to construct actual instances. SeeSimplefor details. - traversal_
position - watchers
- Watchers handles a list of watcher connections attached to a directory. Watchers as described in fuchsia.io.
Structs§
- Directory
Options - A directory can be open either as a directory or a node.
Functions§
- serve
- Helper function to serve a new connection to
directorywithflags. Errors will be communicated via epitaph on the returned proxy. A newcrate::execution_scope::ExecutionScopewill be created for the request. - serve_
on - Helper function to serve a connection to
directoryonserver_endwith specifiedflagsandscope. Errors will be communicated via epitaph onserver_end. - serve_
read_ only - Helper function to serve a new connection to
directoryas read-only (i.e. with [fio::PERM_READABLE]). Errors will be communicated via epitaph on the returned proxy. A newcrate::execution_scope::ExecutionScopewill be created for the request.