pub enum Error {
    UnknownCodec,
    InputTooShort,
    ParsingError,
    InvalidCidVersion,
    InvalidCidV0Codec,
    InvalidCidV0Multihash,
    InvalidCidV0Base,
    VarIntDecodeError,
    Io(Error),
}
Expand description

Error types

Variants

UnknownCodec

Unknown CID codec.

InputTooShort

Input data is too short.

ParsingError

Multibase or multihash codec failure

InvalidCidVersion

Invalid CID version.

InvalidCidV0Codec

Invalid CIDv0 codec.

InvalidCidV0Multihash

Invalid CIDv0 multihash.

InvalidCidV0Base

Invalid CIDv0 base encoding.

VarIntDecodeError

Varint decode failure.

Io(Error)

Io error.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.