Skip to main content

Module listing

Module listing 

Source

Structs§

CountingWriter 🔒
A writer that only counts the number of bytes written so far, updating a &AtomicU64. We can’t use count_write::CountWrite. As we hand out a &mut Write to the NAR writer, we can’t have other read-only references until we drop it, yet we need to be able to access the current offsets to put in the listing scructure we build up at the same time.

Enums§

Error

Functions§

produce_listing
Accepts a Node pointing to the root of a (store) path, and uses the passed DirectoryService to expand the entire structure. Then assembles a Listing.
produce_listing_inner 🔒