[][src]Enum ipfs_unixfs::walk::ContinuedWalk

pub enum ContinuedWalk<'a> {
    File(FileSegment<'a>, Item),
    Directory(Item),
    Symlink(&'a [u8]Item),
}

Representation of the walk progress. The common Item can be used to continue the walk.

Variants

File(FileSegment<'a>, Item)

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

Directory(Item)

Currently looking at a 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.

Implementations

impl<'_> ContinuedWalk<'_>[src]

pub fn into_inner(self) -> Item[src]

Returns the Item describing the current entry; helpful when only listing the tree.

Trait Implementations

impl<'a> Debug for ContinuedWalk<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.