pub fn read_dirents<'a>(
entries: &'a [(EntryInfo, String)],
pos: &'a TraversalPosition,
sink: Box<dyn Sink + 'static>,
) -> Result<(TraversalPosition, Box<dyn Sealed + 'static>), Status>Expand description
Helper for implementing crate::directory::entry_container::Directory::read_dirents.
entries must be the contents of the directory sorted by name, the second tuple element.
entries must not contain “.”. This fn will append “.” to sink as the first element
automatically using inode fidl_fuchsia_io::INO_UNKNOWN.