Enum wasm_utils::types::OpStatusCode
source · [−]#[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
sourceimpl Clone for OpStatusCode
impl Clone for OpStatusCode
sourcefn clone(&self) -> OpStatusCode
fn clone(&self) -> OpStatusCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for OpStatusCode
impl Debug for OpStatusCode
sourceimpl From<OpStatusCode> for String
impl From<OpStatusCode> for String
sourcefn from(e: OpStatusCode) -> Self
fn from(e: OpStatusCode) -> Self
Converts to this type from the input type.
sourceimpl From<OpStatusCode> for OperationError
impl From<OpStatusCode> for OperationError
sourcefn from(e: OpStatusCode) -> Self
fn from(e: OpStatusCode) -> Self
Converts to this type from the input type.
sourceimpl From<OpStatusCode> for JsValue
impl From<OpStatusCode> for JsValue
sourcefn from(e: OpStatusCode) -> Self
fn from(e: OpStatusCode) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<OpStatusCode> for OpStatusCode
impl PartialEq<OpStatusCode> for OpStatusCode
impl Eq for OpStatusCode
impl StructuralEq for OpStatusCode
impl StructuralPartialEq for OpStatusCode
Auto Trait Implementations
impl RefUnwindSafe for OpStatusCode
impl Send for OpStatusCode
impl Sync for OpStatusCode
impl Unpin for OpStatusCode
impl UnwindSafe for OpStatusCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more