Enum near_jsonrpc_client::methods::query::RpcQueryError
source · pub enum RpcQueryError {
NoSyncedBlocks,
UnavailableShard {
requested_shard_id: u64,
},
GarbageCollectedBlock {
block_height: u64,
block_hash: CryptoHash,
},
UnknownBlock {
block_reference: BlockReference,
},
InvalidAccount {
requested_account_id: AccountId,
block_height: u64,
block_hash: CryptoHash,
},
UnknownAccount {
requested_account_id: AccountId,
block_height: u64,
block_hash: CryptoHash,
},
NoContractCode {
contract_account_id: AccountId,
block_height: u64,
block_hash: CryptoHash,
},
TooLargeContractState {
contract_account_id: AccountId,
block_height: u64,
block_hash: CryptoHash,
},
UnknownAccessKey {
public_key: PublicKey,
block_height: u64,
block_hash: CryptoHash,
},
ContractExecutionError {
vm_error: String,
block_height: u64,
block_hash: CryptoHash,
},
InternalError {
error_message: String,
},
}
Variants§
NoSyncedBlocks
GarbageCollectedBlock
UnknownBlock
Fields
§
block_reference: BlockReference
InvalidAccount
UnknownAccount
NoContractCode
TooLargeContractState
UnknownAccessKey
ContractExecutionError
InternalError
Trait Implementations§
source§impl Debug for RpcQueryError
impl Debug for RpcQueryError
source§impl<'de> Deserialize<'de> for RpcQueryError
impl<'de> Deserialize<'de> for RpcQueryError
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcQueryError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcQueryError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for RpcQueryError
impl Display for RpcQueryError
source§impl Error for RpcQueryError
impl Error for RpcQueryError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl RpcHandlerError for RpcQueryError
impl RpcHandlerError for RpcQueryError
source§impl Serialize for RpcQueryError
impl Serialize for RpcQueryError
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RpcQueryError
impl RefUnwindSafe for RpcQueryError
impl Send for RpcQueryError
impl Sync for RpcQueryError
impl Unpin for RpcQueryError
impl UnwindSafe for RpcQueryError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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