pub enum Error {
Show 94 variants ConsumedAmountOverflow, ConsumedNativeTokensAmountOverflow, CreatedAmountOverflow, CreatedNativeTokensAmountOverflow, Crypto(Error), DuplicateSignatureUnlock(u16), DuplicateUtxo(UtxoInput), ExpirationUnlockConditionZero, FeaturesNotUniqueSorted, InputUnlockCountMismatch { input_count: usize, unlock_count: usize, }, InvalidAddress, InvalidAddressKind(u8), InvalidAliasIndex(<BoundedU16<iota_sdk::::types::block::unlock::UnlockIndex::{constant#0}, iota_sdk::::types::block::unlock::UnlockIndex::{constant#1}> as TryFrom<u16>>::Error), InvalidStorageDepositAmount(u64), InsufficientStorageDepositAmount { amount: u64, required: u64, }, StorageDepositReturnExceedsOutputAmount { deposit: u64, amount: u64, }, InsufficientStorageDepositReturnAmount { deposit: u64, required: u64, }, InvalidBinaryParametersLength(<BoundedU16<iota_sdk::::types::block::payload::milestone::option::parameters::BinaryParametersLength::{constant#0}, iota_sdk::::types::block::payload::milestone::option::parameters::BinaryParametersLength::{constant#1}> as TryFrom<usize>>::Error), InvalidEssenceKind(u8), InvalidFeatureCount(<BoundedU8<0, iota_sdk::::types::block::output::feature::FeatureCount::{constant#1}> as TryFrom<usize>>::Error), InvalidFeatureKind(u8), InvalidFoundryOutputSupply { minted: U256, melted: U256, max: U256, }, Hex(Error), InvalidInputKind(u8), InvalidInputCount(<BoundedU16<iota_sdk::::types::block::payload::transaction::essence::regular::InputCount::{constant#0}, iota_sdk::::types::block::payload::transaction::essence::regular::InputCount::{constant#1}> as TryFrom<usize>>::Error), InvalidInputOutputIndex(<BoundedU16<iota_sdk::::types::block::output::output_id::OutputIndex::{constant#0}, iota_sdk::::types::block::output::output_id::OutputIndex::{constant#1}> as TryFrom<u16>>::Error), InvalidBech32Hrp(String), InvalidBlockLength(usize), InvalidStateMetadataLength(<BoundedU16<0, iota_sdk::::types::block::output::alias::StateMetadataLength::{constant#1}> as TryFrom<usize>>::Error), InvalidMetadataFeatureLength(<BoundedU16<iota_sdk::::types::block::output::feature::metadata::MetadataFeatureLength::{constant#0}, iota_sdk::::types::block::output::feature::metadata::MetadataFeatureLength::{constant#1}> as TryFrom<usize>>::Error), InvalidMilestoneMetadataLength(<BoundedU16<iota_sdk::::types::block::payload::milestone::essence::MilestoneMetadataLength::{constant#0}, iota_sdk::::types::block::payload::milestone::essence::MilestoneMetadataLength::{constant#1}> as TryFrom<usize>>::Error), InvalidMilestoneOptionCount(<BoundedU8<0, iota_sdk::::types::block::payload::milestone::option::MilestoneOptionCount::{constant#1}> as TryFrom<usize>>::Error), InvalidMilestoneOptionKind(u8), InvalidMigratedFundsEntryAmount(u64), InvalidNativeTokenCount(<BoundedU8<0, iota_sdk::::types::block::output::native_token::NativeTokenCount::{constant#1}> as TryFrom<usize>>::Error), InvalidNetworkName(FromUtf8Error), InvalidNftIndex(<BoundedU16<iota_sdk::::types::block::unlock::UnlockIndex::{constant#0}, iota_sdk::::types::block::unlock::UnlockIndex::{constant#1}> as TryFrom<u16>>::Error), InvalidOutputAmount(u64), InvalidOutputCount(<BoundedU16<iota_sdk::::types::block::payload::transaction::essence::regular::OutputCount::{constant#0}, iota_sdk::::types::block::payload::transaction::essence::regular::OutputCount::{constant#1}> as TryFrom<usize>>::Error), InvalidOutputKind(u8), InvalidParentCount(<BoundedU8<iota_sdk::::types::block::parent::ParentCount::{constant#0}, iota_sdk::::types::block::parent::ParentCount::{constant#1}> as TryFrom<usize>>::Error), InvalidPayloadKind(u32), InvalidPayloadLength { expected: usize, actual: usize, }, InvalidReceiptFundsCount(<BoundedU16<iota_sdk::::types::block::payload::milestone::option::receipt::ReceiptFundsCount::{constant#0}, iota_sdk::::types::block::payload::milestone::option::receipt::ReceiptFundsCount::{constant#1}> as TryFrom<usize>>::Error), InvalidReceiptFundsSum(u128), InvalidReferenceIndex(<BoundedU16<iota_sdk::::types::block::unlock::UnlockIndex::{constant#0}, iota_sdk::::types::block::unlock::UnlockIndex::{constant#1}> as TryFrom<u16>>::Error), InvalidSignature, InvalidSignatureKind(u8), InvalidStringPrefix(<u8 as TryFrom<usize>>::Error), InvalidTaggedDataLength(<BoundedU32<iota_sdk::::types::block::payload::tagged_data::TaggedDataLength::{constant#0}, iota_sdk::::types::block::payload::tagged_data::TaggedDataLength::{constant#1}> as TryFrom<usize>>::Error), InvalidTagFeatureLength(<BoundedU8<iota_sdk::::types::block::output::feature::tag::TagFeatureLength::{constant#0}, iota_sdk::::types::block::output::feature::tag::TagFeatureLength::{constant#1}> as TryFrom<usize>>::Error), InvalidTagLength(<BoundedU8<iota_sdk::::types::block::payload::tagged_data::TagLength::{constant#0}, iota_sdk::::types::block::payload::tagged_data::TagLength::{constant#1}> as TryFrom<usize>>::Error), InvalidTailTransactionHash, InvalidTokenSchemeKind(u8), InvalidTransactionAmountSum(u128), InvalidTransactionNativeTokensCount(u16), InvalidTreasuryOutputAmount(u64), InvalidUnlockCount(<BoundedU16<iota_sdk::::types::block::unlock::UnlockCount::{constant#0}, iota_sdk::::types::block::unlock::UnlockCount::{constant#1}> as TryFrom<usize>>::Error), InvalidUnlockKind(u8), InvalidUnlockReference(u16), InvalidUnlockAlias(u16), InvalidUnlockNft(u16), InvalidUnlockConditionCount(<BoundedU8<0, iota_sdk::::types::block::output::unlock_condition::UnlockConditionCount::{constant#1}> as TryFrom<usize>>::Error), InvalidUnlockConditionKind(u8), InvalidFoundryZeroSerialNumber, MilestoneInvalidSignatureCount(<BoundedU8<iota_sdk::::types::block::payload::milestone::SignatureCount::{constant#0}, iota_sdk::::types::block::payload::milestone::SignatureCount::{constant#1}> as TryFrom<usize>>::Error), MilestonePublicKeysSignaturesCountMismatch { key_count: usize, sig_count: usize, }, MilestoneOptionsNotUniqueSorted, MilestoneSignaturesNotUniqueSorted, MissingAddressUnlockCondition, MissingGovernorUnlockCondition, MissingStateControllerUnlockCondition, NativeTokensNotUniqueSorted, NativeTokensNullAmount, NativeTokensOverflow, NetworkIdMismatch { expected: u64, actual: u64, }, NonZeroStateIndexOrFoundryCounter, ParentsNotUniqueSorted, ProtocolVersionMismatch { expected: u8, actual: u8, }, NonceNotFound, ReceiptFundsNotUniqueSorted, RemainingBytesAfterBlock, SelfControlledAliasOutput(AliasId), SelfDepositNft(NftId), SignaturePublicKeyMismatch { expected: String, actual: String, }, StorageDepositReturnOverflow, TailTransactionHashNotUnique { previous: usize, current: usize, }, TimelockUnlockConditionZero, UnallowedFeature { index: usize, kind: u8, }, UnallowedUnlockCondition { index: usize, kind: u8, }, UnlockConditionsNotUniqueSorted, UnsupportedOutputKind(u8), DuplicateOutputChain(ChainId), InvalidField(&'static str),
}
Expand description

Error occurring when creating/parsing/validating blocks.

Variants§

§

ConsumedAmountOverflow

§

ConsumedNativeTokensAmountOverflow

§

CreatedAmountOverflow

§

CreatedNativeTokensAmountOverflow

§

Crypto(Error)

§

DuplicateSignatureUnlock(u16)

§

DuplicateUtxo(UtxoInput)

§

ExpirationUnlockConditionZero

§

FeaturesNotUniqueSorted

§

InputUnlockCountMismatch

Fields

§input_count: usize
§unlock_count: usize
§

InvalidAddress

§

InvalidAddressKind(u8)

§

InvalidAliasIndex(<BoundedU16<iota_sdk::::types::block::unlock::UnlockIndex::{constant#0}, iota_sdk::::types::block::unlock::UnlockIndex::{constant#1}> as TryFrom<u16>>::Error)

§

InvalidStorageDepositAmount(u64)

§

InsufficientStorageDepositAmount

Fields

§amount: u64
§required: u64
§

StorageDepositReturnExceedsOutputAmount

Fields

§deposit: u64
§amount: u64
§

InsufficientStorageDepositReturnAmount

Fields

§deposit: u64
§required: u64
§

InvalidBinaryParametersLength(<BoundedU16<iota_sdk::::types::block::payload::milestone::option::parameters::BinaryParametersLength::{constant#0}, iota_sdk::::types::block::payload::milestone::option::parameters::BinaryParametersLength::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidEssenceKind(u8)

§

InvalidFeatureCount(<BoundedU8<0, iota_sdk::::types::block::output::feature::FeatureCount::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidFeatureKind(u8)

§

InvalidFoundryOutputSupply

Fields

§minted: U256
§melted: U256
§max: U256
§

Hex(Error)

§

InvalidInputKind(u8)

§

InvalidInputCount(<BoundedU16<iota_sdk::::types::block::payload::transaction::essence::regular::InputCount::{constant#0}, iota_sdk::::types::block::payload::transaction::essence::regular::InputCount::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidInputOutputIndex(<BoundedU16<iota_sdk::::types::block::output::output_id::OutputIndex::{constant#0}, iota_sdk::::types::block::output::output_id::OutputIndex::{constant#1}> as TryFrom<u16>>::Error)

§

InvalidBech32Hrp(String)

§

InvalidBlockLength(usize)

§

InvalidStateMetadataLength(<BoundedU16<0, iota_sdk::::types::block::output::alias::StateMetadataLength::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidMetadataFeatureLength(<BoundedU16<iota_sdk::::types::block::output::feature::metadata::MetadataFeatureLength::{constant#0}, iota_sdk::::types::block::output::feature::metadata::MetadataFeatureLength::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidMilestoneMetadataLength(<BoundedU16<iota_sdk::::types::block::payload::milestone::essence::MilestoneMetadataLength::{constant#0}, iota_sdk::::types::block::payload::milestone::essence::MilestoneMetadataLength::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidMilestoneOptionCount(<BoundedU8<0, iota_sdk::::types::block::payload::milestone::option::MilestoneOptionCount::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidMilestoneOptionKind(u8)

§

InvalidMigratedFundsEntryAmount(u64)

§

InvalidNativeTokenCount(<BoundedU8<0, iota_sdk::::types::block::output::native_token::NativeTokenCount::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidNetworkName(FromUtf8Error)

§

InvalidNftIndex(<BoundedU16<iota_sdk::::types::block::unlock::UnlockIndex::{constant#0}, iota_sdk::::types::block::unlock::UnlockIndex::{constant#1}> as TryFrom<u16>>::Error)

§

InvalidOutputAmount(u64)

§

InvalidOutputCount(<BoundedU16<iota_sdk::::types::block::payload::transaction::essence::regular::OutputCount::{constant#0}, iota_sdk::::types::block::payload::transaction::essence::regular::OutputCount::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidOutputKind(u8)

§

InvalidParentCount(<BoundedU8<iota_sdk::::types::block::parent::ParentCount::{constant#0}, iota_sdk::::types::block::parent::ParentCount::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidPayloadKind(u32)

§

InvalidPayloadLength

Fields

§expected: usize
§actual: usize
§

InvalidReceiptFundsCount(<BoundedU16<iota_sdk::::types::block::payload::milestone::option::receipt::ReceiptFundsCount::{constant#0}, iota_sdk::::types::block::payload::milestone::option::receipt::ReceiptFundsCount::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidReceiptFundsSum(u128)

§

InvalidReferenceIndex(<BoundedU16<iota_sdk::::types::block::unlock::UnlockIndex::{constant#0}, iota_sdk::::types::block::unlock::UnlockIndex::{constant#1}> as TryFrom<u16>>::Error)

§

InvalidSignature

§

InvalidSignatureKind(u8)

§

InvalidStringPrefix(<u8 as TryFrom<usize>>::Error)

§

InvalidTaggedDataLength(<BoundedU32<iota_sdk::::types::block::payload::tagged_data::TaggedDataLength::{constant#0}, iota_sdk::::types::block::payload::tagged_data::TaggedDataLength::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidTagFeatureLength(<BoundedU8<iota_sdk::::types::block::output::feature::tag::TagFeatureLength::{constant#0}, iota_sdk::::types::block::output::feature::tag::TagFeatureLength::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidTagLength(<BoundedU8<iota_sdk::::types::block::payload::tagged_data::TagLength::{constant#0}, iota_sdk::::types::block::payload::tagged_data::TagLength::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidTailTransactionHash

§

InvalidTokenSchemeKind(u8)

§

InvalidTransactionAmountSum(u128)

§

InvalidTransactionNativeTokensCount(u16)

§

InvalidTreasuryOutputAmount(u64)

§

InvalidUnlockCount(<BoundedU16<iota_sdk::::types::block::unlock::UnlockCount::{constant#0}, iota_sdk::::types::block::unlock::UnlockCount::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidUnlockKind(u8)

§

InvalidUnlockReference(u16)

§

InvalidUnlockAlias(u16)

§

InvalidUnlockNft(u16)

§

InvalidUnlockConditionCount(<BoundedU8<0, iota_sdk::::types::block::output::unlock_condition::UnlockConditionCount::{constant#1}> as TryFrom<usize>>::Error)

§

InvalidUnlockConditionKind(u8)

§

InvalidFoundryZeroSerialNumber

§

MilestoneInvalidSignatureCount(<BoundedU8<iota_sdk::::types::block::payload::milestone::SignatureCount::{constant#0}, iota_sdk::::types::block::payload::milestone::SignatureCount::{constant#1}> as TryFrom<usize>>::Error)

§

MilestonePublicKeysSignaturesCountMismatch

Fields

§key_count: usize
§sig_count: usize
§

MilestoneOptionsNotUniqueSorted

§

MilestoneSignaturesNotUniqueSorted

§

MissingAddressUnlockCondition

§

MissingGovernorUnlockCondition

§

MissingStateControllerUnlockCondition

§

NativeTokensNotUniqueSorted

§

NativeTokensNullAmount

§

NativeTokensOverflow

§

NetworkIdMismatch

Fields

§expected: u64
§actual: u64
§

NonZeroStateIndexOrFoundryCounter

§

ParentsNotUniqueSorted

§

ProtocolVersionMismatch

Fields

§expected: u8
§actual: u8
§

NonceNotFound

§

ReceiptFundsNotUniqueSorted

§

RemainingBytesAfterBlock

§

SelfControlledAliasOutput(AliasId)

§

SelfDepositNft(NftId)

§

SignaturePublicKeyMismatch

Fields

§expected: String
§actual: String
§

StorageDepositReturnOverflow

§

TailTransactionHashNotUnique

Fields

§previous: usize
§current: usize
§

TimelockUnlockConditionZero

§

UnallowedFeature

Fields

§index: usize
§kind: u8
§

UnallowedUnlockCondition

Fields

§index: usize
§kind: u8
§

UnlockConditionsNotUniqueSorted

§

UnsupportedOutputKind(u8)

§

DuplicateOutputChain(ChainId)

§

InvalidField(&'static str)

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for Error

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

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

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<Error> for Error

source§

fn from(error: Error) -> Error

Converts to this type from the input type.
source§

impl From<Infallible> for Error

source§

fn from(error: Infallible) -> Error

Converts to this type from the input type.
source§

impl PartialEq for Error

source§

fn eq(&self, other: &Error) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Error

source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> ConvertTo<T> for T
where T: Send,

source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more