Struct unixfs_v1::walk::Walker [−][src]
pub struct Walker { /* fields omitted */ }
Expand description
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.
Implementations
Returns a new instance of a walker, ready to start from the given Cid
.
Returns the next [Cid
] to load and pass its associated content to [next
].
Panics
When [should_continue()
] returns false
.
Continues the walk.
Returns a descriptor for the next element found as ContinuedWalk
which includes the means
to further continue the walk. bytes
is the raw data of the next block, cache
is an
optional cache for data structures which can always be substituted with &mut None
.
Returns true
if there are more links to walk over.