pub struct IdleFileVisit { /* private fields */ }
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§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Scrape the references from an impl Read. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.