Enum unixfs_v1::walk::ContinuedWalk[][src]

pub enum ContinuedWalk<'a> {
    Bucket(&'a Cid, &'a Path),
    Directory(&'a Cid, &'a Path, &'a Metadata),
    File(FileSegment<'a>, &'a Cid, &'a Path, &'a Metadatau64),
    RootDirectory(&'a Cid, &'a Path, &'a Metadata),
    Symlink(&'a [u8], &'a Cid, &'a Path, &'a Metadata),
}
Expand description

Representation of the walk progress.

Variants

Bucket(&'a Cid, &'a Path)

Currently looking at a continuation of a HAMT sharded directory. Usually safe to ignore.

Directory(&'a Cid, &'a Path, &'a Metadata)

Currently looking at a directory.

File(FileSegment<'a>, &'a Cid, &'a Path, &'a Metadatau64)

Currently looking at a file. The first tuple value contains the file bytes accessible from the block, which can also be an empty slice.

RootDirectory(&'a Cid, &'a Path, &'a Metadata)

Currently looking at a root directory.

Currently looking at a symlink. The first tuple value contains the symlink target path. It might be convertible to UTF-8, but this is not specified in the spec.

Trait Implementations

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

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.