pub enum RpcCustomError {
Show 16 variants
BlockCleanedUp {
slot: Slot,
first_available_block: Slot,
},
SendTransactionPreflightFailure {
message: String,
result: RpcSimulateTransactionResult,
},
TransactionSignatureVerificationFailure,
BlockNotAvailable {
slot: Slot,
},
NodeUnhealthy {
num_slots_behind: Option<Slot>,
},
TransactionPrecompileVerificationFailure(TransactionError),
SlotSkipped {
slot: Slot,
},
NoSnapshot,
LongTermStorageSlotSkipped {
slot: Slot,
},
KeyExcludedFromSecondaryIndex {
index_key: String,
},
TransactionHistoryNotAvailable,
ScanError {
message: String,
},
TransactionSignatureLenMismatch,
BlockStatusNotAvailableYet {
slot: Slot,
},
UnsupportedTransactionVersion(u8),
MinContextSlotNotReached {
context_slot: Slot,
},
}
Variants
BlockCleanedUp
SendTransactionPreflightFailure
TransactionSignatureVerificationFailure
BlockNotAvailable
NodeUnhealthy
Fields
num_slots_behind: Option<Slot>
TransactionPrecompileVerificationFailure(TransactionError)
SlotSkipped
NoSnapshot
LongTermStorageSlotSkipped
KeyExcludedFromSecondaryIndex
Fields
index_key: String
TransactionHistoryNotAvailable
ScanError
Fields
message: String
TransactionSignatureLenMismatch
BlockStatusNotAvailableYet
UnsupportedTransactionVersion(u8)
MinContextSlotNotReached
Trait Implementations
sourceimpl Debug for RpcCustomError
impl Debug for RpcCustomError
sourceimpl Display for RpcCustomError
impl Display for RpcCustomError
sourceimpl Error for RpcCustomError
impl Error for RpcCustomError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<EncodeError> for RpcCustomError
impl From<EncodeError> for RpcCustomError
sourcefn from(err: EncodeError) -> Self
fn from(err: EncodeError) -> Self
Converts to this type from the input type.
sourceimpl From<RpcCustomError> for Error
impl From<RpcCustomError> for Error
sourcefn from(e: RpcCustomError) -> Self
fn from(e: RpcCustomError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for RpcCustomError
impl Send for RpcCustomError
impl Sync for RpcCustomError
impl Unpin for RpcCustomError
impl UnwindSafe for RpcCustomError
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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