pub enum PoseidonError {
Show 15 variants Io(ErrorKind), Http(Minreq), BincodeError(ErrorKind), SerdeJsonDeser(String), MaxSeedLengthExceeded, IllegalOwner, UnspecifiedError, InvalidBase58ForPublicKey, ErrorConvertingToU832, ProgramIdNotFound, PublicKeyNotFoundInMessageAccounts, AccountIndexNotFoundInMessageAccounts, Bs58Decode(Error), Bs58Encode(Error), TransactionNotFoundInCluster,
}

Variants

Io(ErrorKind)

Http(Minreq)

Errors from the minreq crate

BincodeError(ErrorKind)

Errors from the bincode crate

SerdeJsonDeser(String)

Errors encountered when using serde_json crate to deserialize

MaxSeedLengthExceeded

The maximum length of the seed provided has been exceeded as indicated by [MAX_SEED_LEN]

IllegalOwner

The owner public key of the PDA provided is the same as the [PDA_MARKER] address. This is not allowed.

UnspecifiedError

The error that occured hasn’t been encountered before

InvalidBase58ForPublicKey

The string provided is not valid for the Base58 format.

ErrorConvertingToU832

Unable to convert a slice to an array of 32 bytes ([u8; 32]).

ProgramIdNotFound

The program ID was not found in the provided instruction

PublicKeyNotFoundInMessageAccounts

The public key was not found in the accounts found in the Message

AccountIndexNotFoundInMessageAccounts

The account index was not found in the Accounts

Bs58Decode(Error)

Error decoding string as Base58 format

Bs58Encode(Error)

Error encoding to base58 format

TransactionNotFoundInCluster

The transaction was not found in the Cluster

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

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

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

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.

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.