pub enum RpcLightClientNextBlockError {
InternalError {
error_message: String,
},
UnknownBlock(Map<String, Value>),
EpochOutOfBounds {
epoch_id: EpochId,
},
}Expand description
RpcLightClientNextBlockError
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"error_message"
],
"properties": {
"error_message": {
"type": "string"
}
}
},
"name": {
"type": "string",
"enum": [
"INTERNAL_ERROR"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object"
},
"name": {
"type": "string",
"enum": [
"UNKNOWN_BLOCK"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"epoch_id"
],
"properties": {
"epoch_id": {
"$ref": "#/components/schemas/EpochId"
}
}
},
"name": {
"type": "string",
"enum": [
"EPOCH_OUT_OF_BOUNDS"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for RpcLightClientNextBlockError
impl Clone for RpcLightClientNextBlockError
Source§fn clone(&self) -> RpcLightClientNextBlockError
fn clone(&self) -> RpcLightClientNextBlockError
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 RpcLightClientNextBlockError
impl Debug for RpcLightClientNextBlockError
Source§impl<'de> Deserialize<'de> for RpcLightClientNextBlockError
impl<'de> Deserialize<'de> for RpcLightClientNextBlockError
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<&RpcLightClientNextBlockError> for RpcLightClientNextBlockError
impl From<&RpcLightClientNextBlockError> for RpcLightClientNextBlockError
Source§fn from(value: &RpcLightClientNextBlockError) -> Self
fn from(value: &RpcLightClientNextBlockError) -> Self
Converts to this type from the input type.
Source§impl From<RpcLightClientNextBlockError> for ErrorWrapperForRpcLightClientNextBlockError
impl From<RpcLightClientNextBlockError> for ErrorWrapperForRpcLightClientNextBlockError
Source§fn from(value: RpcLightClientNextBlockError) -> Self
fn from(value: RpcLightClientNextBlockError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcLightClientNextBlockError
impl RefUnwindSafe for RpcLightClientNextBlockError
impl Send for RpcLightClientNextBlockError
impl Sync for RpcLightClientNextBlockError
impl Unpin for RpcLightClientNextBlockError
impl UnwindSafe for RpcLightClientNextBlockError
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