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§
Source§impl Debug for PoseidonError
impl Debug for PoseidonError
Source§impl Display for PoseidonError
impl Display for PoseidonError
Source§impl Error for PoseidonError
impl Error for PoseidonError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for PoseidonError
impl From<Error> for PoseidonError
Source§impl From<Error> for PoseidonError
impl From<Error> for PoseidonError
Source§impl From<Error> for PoseidonError
impl From<Error> for PoseidonError
Source§impl From<Error> for PoseidonError
impl From<Error> for PoseidonError
Auto Trait Implementations§
impl Freeze for PoseidonError
impl !RefUnwindSafe for PoseidonError
impl Send for PoseidonError
impl Sync for PoseidonError
impl Unpin for PoseidonError
impl !UnwindSafe for PoseidonError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more