[][src]Enum ipfs_unixfs::dir::ShardError

pub enum ShardError {
    UnsupportedProperties {
        hash_type: Option<u64>,
        fanout: Option<u64>,
    },
    UnexpectedProperties {
        filesize: Option<u64>,
        blocksizes: Vec<u64>,
    },
}

Shard does not fit into expectations.

Variants

UnsupportedProperties

Encountered an HAMT sharded directory which had an unsupported configuration.

Fields of UnsupportedProperties

hash_type: Option<u64>

Unsupported multihash hash.

fanout: Option<u64>

Unsupported fanout value.

UnexpectedProperties

Encountered an HAMT sharded directory which had a unexpected properties.

Fields of UnexpectedProperties

filesize: Option<u64>

Filesize is used with UnixFS files.

blocksizes: Vec<u64>

Blocksizes are in general used with UnixFS files.

Trait Implementations

impl Debug for ShardError[src]

impl Display for ShardError[src]

impl Error for ShardError[src]

impl From<ShardError> for LookupError[src]

impl From<ShardError> for ResolveError[src]

impl From<ShardError> for Error[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[src]

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.