pub enum RpcError {
Show 13 variants
InvalidTransactionSize {
size: usize,
max_size: usize,
},
TrailingBytes {
expected: usize,
found: usize,
},
TooManyAccounts {
count: usize,
max_count: usize,
},
InvalidTransactionSignature,
InvalidParams(&'static str),
InvalidFormat,
InvalidVersion,
InvalidFlags,
InvalidFeePayerStateProofType,
InvalidChainId,
DuplicateAccount,
UnsortedReadwriteAccounts,
UnsortedReadonlyAccounts,
}Variants§
InvalidTransactionSize
TrailingBytes
TooManyAccounts
InvalidTransactionSignature
InvalidParams(&'static str)
InvalidFormat
InvalidVersion
InvalidFlags
InvalidFeePayerStateProofType
InvalidChainId
DuplicateAccount
UnsortedReadwriteAccounts
UnsortedReadonlyAccounts
Implementations§
Source§impl RpcError
impl RpcError
pub fn invalid_transaction_size(size: usize, max_size: usize) -> Self
pub fn trailing_bytes(expected: usize, found: usize) -> Self
pub fn too_many_accounts(count: usize, max_count: usize) -> Self
pub fn invalid_transaction_signature() -> Self
pub fn invalid_params(msg: &'static str) -> Self
pub fn invalid_format() -> Self
pub fn invalid_version() -> Self
pub fn invalid_flags() -> Self
pub fn invalid_fee_payer_state_proof_type() -> Self
pub fn invalid_chain_id() -> Self
pub fn duplicate_account() -> Self
pub fn unsorted_readwrite_accounts() -> Self
pub fn unsorted_readonly_accounts() -> Self
Trait Implementations§
Source§impl Error for RpcError
impl Error for RpcError
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()
impl StructuralPartialEq for RpcError
Auto Trait Implementations§
impl Freeze for RpcError
impl RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl UnsafeUnpin for RpcError
impl UnwindSafe for RpcError
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