#[repr(u32)]
pub enum OpStatusCode {
Show 43 variants Unknown, InvalidHexLength, HexParsingFailed, InvalidNoteLength, InvalidNoteProtocol, InvalidNoteVersion, InvalidNoteId, InvalidNoteBlockNumber, InvalidNoteSecrets, MerkleTreeNotFound, SerializationFailed, DeserializationFailed, InvalidArrayLength, InvalidCurve, InvalidHasFunction, InvalidBackend, InvalidDenomination, SecretGenFailed, InvalidSourceChain, InvalidTargetChain, InvalidTokenSymbol, InvalidExponentiation, InvalidWidth, InvalidAmount, InvalidProofParameters, InvalidProvingKey, InvalidRecipient, InvalidRelayer, InvalidLeafIndex, InvalidFee, InvalidRefund, InvalidLeaves, FailedToGenerateTheLeaf, ProofBuilderNoteNotSet, CommitmentNotSet, RootsNotSet, InvalidNoteMiscData, InvalidSourceIdentifyingData, InvalidTargetIdentifyingData, UnsupportedParameterCombination, InvalidProof, InvalidUTXOIndex, UnsupportedBackend,
}

Variants

Unknown

InvalidHexLength

Invalid hex string length when decoding

HexParsingFailed

Failed to parse hex string

InvalidNoteLength

Invalid number of note parts when decoding

InvalidNoteProtocol

Invalid note protocol

InvalidNoteVersion

Invalid note version

InvalidNoteId

Invalid note id when parsing

InvalidNoteBlockNumber

Invalid note block number when parsing

InvalidNoteSecrets

Invalid note secrets

MerkleTreeNotFound

Unable to find merkle tree

SerializationFailed

Failed serialization of passed params Error for failing to parse rust type into JsValue

DeserializationFailed

Failed deserialization of JsValue into rust type

InvalidArrayLength

Invalid Array of 32 bytes.

InvalidCurve

Invalid curve when parsing

InvalidHasFunction

Invalid hashFunction id when parsing

InvalidBackend

Invalid backend id when parsing

InvalidDenomination

Invalid denomination id when parsing

SecretGenFailed

Failed to generate secrets

InvalidSourceChain

Invalid Source chain

InvalidTargetChain

Invalid target chain

InvalidTokenSymbol

Invalid Token Symbol

InvalidExponentiation

Invalid Exponentiation

InvalidWidth

Invalid Width

InvalidAmount

Invalid Amount

InvalidProofParameters

Invalid proof parameters

InvalidProvingKey

Invalid Proving key

InvalidRecipient

Invalid Recipient

InvalidRelayer

Invalid Relayer

InvalidLeafIndex

Invalid LeafIndex

InvalidFee

Invalid Fee

InvalidRefund

Invalid Refund

InvalidLeaves

Invalid InvalidLeaves

FailedToGenerateTheLeaf

Failed to Generating Leaf

ProofBuilderNoteNotSet

Note not set

CommitmentNotSet

Commitment not set

RootsNotSet

Neighbour Roots aren’t set

InvalidNoteMiscData

Invalid note misc data

InvalidSourceIdentifyingData

Invalid Source IdentifyingData

InvalidTargetIdentifyingData

Invalid target IdentifyingData

UnsupportedParameterCombination

Unsupported combination of parameters

InvalidProof

Invalid proof on verification

InvalidUTXOIndex

Invalid index

UnsupportedBackend

Unsupported Backend

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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

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

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.

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

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