pub struct BackfillOpts {
pub to: Option<u64>,
pub max_blocks: Option<u64>,
pub resolve_only: bool,
}Expand description
What to walk back to.
Fields§
§to: Option<u64>Lowest block to read (inclusive). None: as far as the node serves,
or the contract’s creation, whichever comes first.
max_blocks: Option<u64>Stop after this many blocks; the caller loops and reports progress. Each call commits what it read, so a stopped backfill resumes where it left off.
resolve_only: boolStop as soon as every slot that currently has an unknown pre-value (pending or lost) has found its last earlier write. Slots that never changed since the start are not waited for — only creation settles those.
Trait Implementations§
Source§impl Clone for BackfillOpts
impl Clone for BackfillOpts
Source§fn clone(&self) -> BackfillOpts
fn clone(&self) -> BackfillOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackfillOpts
impl Debug for BackfillOpts
Source§impl Default for BackfillOpts
impl Default for BackfillOpts
Source§fn default() -> BackfillOpts
fn default() -> BackfillOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackfillOpts
impl RefUnwindSafe for BackfillOpts
impl Send for BackfillOpts
impl Sync for BackfillOpts
impl Unpin for BackfillOpts
impl UnsafeUnpin for BackfillOpts
impl UnwindSafe for BackfillOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more