Enum unixfs_v1::walk::ContinuedWalk
source · [−]pub enum ContinuedWalk<'a> {
Bucket(&'a Cid, &'a Path),
Directory(&'a Cid, &'a Path, &'a Metadata),
File(FileSegment<'a>, &'a Cid, &'a Path, &'a Metadata, u64),
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 Metadata, u64)
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.
Symlink(&'a [u8], &'a Cid, &'a Path, &'a Metadata)
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
Auto Trait Implementations
impl<'a> RefUnwindSafe for ContinuedWalk<'a>
impl<'a> Send for ContinuedWalk<'a>
impl<'a> Sync for ContinuedWalk<'a>
impl<'a> Unpin for ContinuedWalk<'a>
impl<'a> UnwindSafe for ContinuedWalk<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more