Struct unixfs_v1::file::visit::IdleFileVisit [−][src]
pub struct IdleFileVisit { /* fields omitted */ }
Expand description
IdleFileVisit represents a prepared file visit over a tree. The user has to know the CID and be able to get the block for the visit.
Note: For easier to use interface, you should consider using ipfs_unixfs::walk::Walker
.
It uses IdleFileVisit
and FileVisit
internally but has a better API.
Implementations
Target range represents the target byte range of the file we are interested in visiting.
Begins the visitation by processing the first block to be visited.
Returns (on success) a tuple of file bytes, total file size, any metadata associated, and
optionally a FileVisit
to continue the walk.
Trait Implementations
Returns the “default value” for a type. Read more