Enum ic_ledger_types::GetBlocksError
source · pub enum GetBlocksError {
BadFirstBlockIndex {
requested_index: BlockIndex,
first_valid_index: BlockIndex,
},
Other {
error_code: u64,
error_message: String,
},
}
Variants§
Trait Implementations§
source§impl CandidType for GetBlocksError
impl CandidType for GetBlocksError
source§impl Debug for GetBlocksError
impl Debug for GetBlocksError
source§impl<'de> Deserialize<'de> for GetBlocksError
impl<'de> Deserialize<'de> for GetBlocksError
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 Display for GetBlocksError
impl Display for GetBlocksError
source§impl PartialEq<GetBlocksError> for GetBlocksError
impl PartialEq<GetBlocksError> for GetBlocksError
source§fn eq(&self, other: &GetBlocksError) -> bool
fn eq(&self, other: &GetBlocksError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.