Enum sp_cid::Error[][src]

pub enum Error {
    UnknownCodec,
    InputTooShort,
    ParsingError,
    InvalidCidVersion,
    InvalidCidV0Codec,
    InvalidCidV0Multihash,
    InvalidCidV0Base,
    VarIntDecodeError,
}
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.

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.

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.

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.