pub struct ArchivedBlockRange {
pub start: BlockIndex,
pub length: u64,
pub callback: QueryArchiveFn,
}Expand description
A function that can be called to retrieve a range of archived blocks.
Fields§
§start: BlockIndexThe index of the first archived block that can be fetched using callback.
length: u64The number of blocks that can be fetched using callback.
callback: QueryArchiveFnThe function that should be called to fetch the archived blocks.
The range of the blocks accessible using this function is given by the start
and length fields above.
Trait Implementations§
Source§impl CandidType for ArchivedBlockRange
impl CandidType for ArchivedBlockRange
Source§impl Clone for ArchivedBlockRange
impl Clone for ArchivedBlockRange
Source§fn clone(&self) -> ArchivedBlockRange
fn clone(&self) -> ArchivedBlockRange
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 ArchivedBlockRange
impl Debug for ArchivedBlockRange
Source§impl<'de> Deserialize<'de> for ArchivedBlockRange
impl<'de> Deserialize<'de> for ArchivedBlockRange
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
Auto Trait Implementations§
impl Freeze for ArchivedBlockRange
impl RefUnwindSafe for ArchivedBlockRange
impl Send for ArchivedBlockRange
impl Sync for ArchivedBlockRange
impl Unpin for ArchivedBlockRange
impl UnwindSafe for ArchivedBlockRange
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