Enum unixfs_v1::walk::Error[][src]

pub enum Error {
    UnsupportedType(UnexpectedNodeType),
    UnexpectedType(UnexpectedNodeType),
    DagPbParsingFailed(Error),
    UnixFsParsingFailed(Error),
    EmptyDagPbNode,
    InvalidCid(InvalidCidInLink),
    File(FileError),
    UnsupportedDirectory(UnexpectedDirectoryProperties),
    UnsupportedHAMTShard(ShardError),
}
Expand description

Errors which can occur while walking a tree.

Variants

UnsupportedType

An unsupported type of UnixFS node was encountered. There should be a way to skip these. Of the defined types only Metadata is unsupported, all undefined types as of 2020-06 are also unsupported.

Tuple Fields of UnsupportedType

0: UnexpectedNodeType
UnexpectedType

This error is returned when a file e.g. links to a non-Raw or non-File subtree.

Tuple Fields of UnexpectedType

0: UnexpectedNodeType
DagPbParsingFailed

dag-pb node parsing failed, perhaps the block is not a dag-pb node?

Tuple Fields of DagPbParsingFailed

0: Error
UnixFsParsingFailed

Failed to parse the unixfs node inside the dag-pb node.

Tuple Fields of UnixFsParsingFailed

0: Error
EmptyDagPbNode

dag-pb node contained no data.

InvalidCid

dag-pb link could not be converted to a Cid

Tuple Fields of InvalidCid

0: InvalidCidInLink
File

A File has an invalid structure

Tuple Fields of File

0: FileError
UnsupportedDirectory

A Directory has an unsupported structure

Tuple Fields of UnsupportedDirectory

0: UnexpectedDirectoryProperties
UnsupportedHAMTShard

HAMTSharded directory has unsupported properties

Tuple Fields of UnsupportedHAMTShard

0: ShardError

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

Converts the given value to a String. Read more

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.