Enum ic_ledger_types::GetBlocksError
source · pub enum GetBlocksError {
BadFirstBlockIndex {
requested_index: BlockIndex,
first_valid_index: BlockIndex,
},
Other {
error_code: u64,
error_message: String,
},
}
Expand description
An error indicating that the arguments passed to get_blocks
or query_archived_blocks
were invalid.
Variants§
BadFirstBlockIndex
Fields
§
requested_index: BlockIndex
The index that was requested.
§
first_valid_index: BlockIndex
The minimum index that can be requested, for this particular call.
The GetBlocksArgs.start
argument was smaller than the first block
served by the canister that received the request.
Other
Fields
Reserved for future use.
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 for GetBlocksError
impl PartialEq 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 ==
.source§impl Serialize for GetBlocksError
impl Serialize for GetBlocksError
impl Eq for GetBlocksError
impl StructuralPartialEq for GetBlocksError
Auto Trait Implementations§
impl RefUnwindSafe for GetBlocksError
impl Send for GetBlocksError
impl Sync for GetBlocksError
impl Unpin for GetBlocksError
impl UnwindSafe for GetBlocksError
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