[][src]Module ipfs_unixfs::walk

Support for walking over all UnixFs trees.

Structs

FileSegment

A slice of bytes of a possibly multi-block file. The slice can be accessed via as_bytes() or AsRef<[u8]>::as_ref().

Item

Structure to hide the internal Walker state and to provide an optional way to continue when there are links left to continue with Item::into_inner().

Walker

Walker helps with walking a UnixFS tree, including all of the content and files. It is created with Walker::new and walked over each block with Walker::continue_block. Use Walker::pending_links to obtain the next Cid to be loaded and the prefetchable links.

Enums

ContinuedWalk

Representation of the walk progress. The common Item can be used to continue the walk.

Entry

Representation of the current item of Walker or the last observed item.

Error

Errors which can occur while walking a tree.