pub enum GetBlockHeadersError {
StartHeightDoesNotExist {
requested: Height,
chain_height: Height,
},
EndHeightDoesNotExist {
requested: Height,
chain_height: Height,
},
StartHeightLargerThanEndHeight {
start_height: Height,
end_height: Height,
},
}Expand description
Errors when processing a get_block_headers request.
Variants§
Trait Implementations§
Source§impl CandidType for GetBlockHeadersError
impl CandidType for GetBlockHeadersError
Source§impl Clone for GetBlockHeadersError
impl Clone for GetBlockHeadersError
Source§fn clone(&self) -> GetBlockHeadersError
fn clone(&self) -> GetBlockHeadersError
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 GetBlockHeadersError
impl Debug for GetBlockHeadersError
Source§impl<'de> Deserialize<'de> for GetBlockHeadersError
impl<'de> Deserialize<'de> for GetBlockHeadersError
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 GetBlockHeadersError
impl Display for GetBlockHeadersError
Source§impl PartialEq for GetBlockHeadersError
impl PartialEq for GetBlockHeadersError
impl Eq for GetBlockHeadersError
impl StructuralPartialEq for GetBlockHeadersError
Auto Trait Implementations§
impl Freeze for GetBlockHeadersError
impl RefUnwindSafe for GetBlockHeadersError
impl Send for GetBlockHeadersError
impl Sync for GetBlockHeadersError
impl Unpin for GetBlockHeadersError
impl UnwindSafe for GetBlockHeadersError
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