pub enum ShardError {
UnsupportedProperties {
hash_type: Option<u64>,
fanout: Option<u64>,
},
UnexpectedProperties {
filesize: Option<u64>,
blocksizes: Vec<u64>,
},
}
Expand description
Shard does not fit into expectations.
Encountered an HAMT sharded directory which had an unsupported configuration.
Show fields
Fields of UnsupportedProperties
Unsupported multihash hash.
Unsupported fanout value.
Encountered an HAMT sharded directory which had a unexpected properties.
Show fields
Fields of UnexpectedProperties
Filesize is used with UnixFS files.
Blocksizes are in general used with UnixFS files.
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
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T> References<RawCodec> for T
pub fn references<R, E>(
_c: RawCodec,
_r: &mut R,
_set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
Scrape the references from an impl Read
. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.