pub enum SolanaError {
InvalidPubkey,
InvalidPubkeyLength,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureIndex,
InvalidInstructionData,
InvalidMessage,
InvalidTransaction,
SerializationError(String),
}
Expand description
A custom error type for Solana operations
Variants§
InvalidPubkey
InvalidPubkeyLength
InvalidSignature
InvalidSignatureLength
InvalidSignatureIndex
InvalidInstructionData
InvalidMessage
InvalidTransaction
SerializationError(String)
Trait Implementations§
Source§impl Debug for SolanaError
impl Debug for SolanaError
Source§impl Display for SolanaError
impl Display for SolanaError
Source§impl Error for SolanaError
impl Error for SolanaError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SolanaError
impl RefUnwindSafe for SolanaError
impl Send for SolanaError
impl Sync for SolanaError
impl Unpin for SolanaError
impl UnwindSafe for SolanaError
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
Mutably borrows from an owned value. Read more