pub enum CaptureTarget {
Finalized,
Lag(u64),
Latest,
}Expand description
Determines which block number is used as the capture target in advance_to_latest.
Default is Latest (no lag) — existing L2 consumers are unchanged.
Mainnet callers should opt in to Finalized for reorg-proof capture.
Variants§
Finalized
Ethereum finalized block (≈ 2 epochs ≈ 64 blocks ≈ 13 min behind tip).
Cryptographically final — cannot reorg without 1/3 of staked ETH slashed.
Opt-in; mainnet-only. L2 finalized tracks L1 finality and lags too far.
Lag(u64)
Fixed number of blocks behind the current chain tip. Saturates at 0.
Latest
Current chain tip. No lag; suitable for L2s with instant-finality sequencers.
Trait Implementations§
Source§impl Clone for CaptureTarget
impl Clone for CaptureTarget
Source§fn clone(&self) -> CaptureTarget
fn clone(&self) -> CaptureTarget
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 moreimpl Copy for CaptureTarget
Source§impl Debug for CaptureTarget
impl Debug for CaptureTarget
Source§impl Default for CaptureTarget
impl Default for CaptureTarget
Source§fn default() -> CaptureTarget
fn default() -> CaptureTarget
Returns the “default value” for a type. Read more
Source§impl PartialEq for CaptureTarget
impl PartialEq for CaptureTarget
impl StructuralPartialEq for CaptureTarget
Auto Trait Implementations§
impl Freeze for CaptureTarget
impl RefUnwindSafe for CaptureTarget
impl Send for CaptureTarget
impl Sync for CaptureTarget
impl Unpin for CaptureTarget
impl UnsafeUnpin for CaptureTarget
impl UnwindSafe for CaptureTarget
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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