pub enum RpcTransactionError {
InvalidTransaction(Map<String, Value>),
DoesNotTrackShard,
RequestRouted {
transaction_hash: CryptoHash,
},
UnknownTransaction {
requested_transaction_hash: CryptoHash,
},
InternalError {
debug_info: String,
},
TimeoutError,
}Expand description
RpcTransactionError
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object"
},
"name": {
"type": "string",
"enum": [
"INVALID_TRANSACTION"
]
}
}
},
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"enum": [
"DOES_NOT_TRACK_SHARD"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"transaction_hash"
],
"properties": {
"transaction_hash": {
"$ref": "#/components/schemas/CryptoHash"
}
}
},
"name": {
"type": "string",
"enum": [
"REQUEST_ROUTED"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"requested_transaction_hash"
],
"properties": {
"requested_transaction_hash": {
"$ref": "#/components/schemas/CryptoHash"
}
}
},
"name": {
"type": "string",
"enum": [
"UNKNOWN_TRANSACTION"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"debug_info"
],
"properties": {
"debug_info": {
"type": "string"
}
}
},
"name": {
"type": "string",
"enum": [
"INTERNAL_ERROR"
]
}
}
},
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"enum": [
"TIMEOUT_ERROR"
]
}
}
}
]
}Variants§
InvalidTransaction(Map<String, Value>)
DoesNotTrackShard
RequestRouted
Fields
§
transaction_hash: CryptoHashUnknownTransaction
Fields
§
requested_transaction_hash: CryptoHashInternalError
TimeoutError
Trait Implementations§
Source§impl Clone for RpcTransactionError
impl Clone for RpcTransactionError
Source§fn clone(&self) -> RpcTransactionError
fn clone(&self) -> RpcTransactionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RpcTransactionError
impl Debug for RpcTransactionError
Source§impl<'de> Deserialize<'de> for RpcTransactionError
impl<'de> Deserialize<'de> for RpcTransactionError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RpcTransactionError> for RpcTransactionError
impl From<&RpcTransactionError> for RpcTransactionError
Source§fn from(value: &RpcTransactionError) -> Self
fn from(value: &RpcTransactionError) -> Self
Converts to this type from the input type.
Source§impl From<RpcTransactionError> for ErrorWrapperForRpcTransactionError
impl From<RpcTransactionError> for ErrorWrapperForRpcTransactionError
Source§fn from(value: RpcTransactionError) -> Self
fn from(value: RpcTransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcTransactionError
impl RefUnwindSafe for RpcTransactionError
impl Send for RpcTransactionError
impl Sync for RpcTransactionError
impl Unpin for RpcTransactionError
impl UnwindSafe for RpcTransactionError
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