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
The GetBlocksArgs.start argument was smaller than the first block
served by the canister that received the request.
Fields
§
requested_index: BlockIndexThe index that was requested.
§
first_valid_index: BlockIndexThe minimum index that can be requested, for this particular call.
Other
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§impl Serialize for GetBlocksError
impl Serialize for GetBlocksError
impl Eq for GetBlocksError
impl StructuralPartialEq for GetBlocksError
Auto Trait Implementations§
impl Freeze for GetBlocksError
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