pub struct TipCursor {
pub l2_safe_head: L2BlockInfo,
pub l2_safe_head_header: Sealed<Header>,
pub l2_safe_head_output_root: B256,
}Expand description
A cursor that keeps track of the L2 tip block.
Fields§
§l2_safe_head: L2BlockInfoThe current L2 safe head.
l2_safe_head_header: Sealed<Header>The header of the L2 safe head.
l2_safe_head_output_root: B256The output root of the L2 safe head.
Implementations§
Source§impl TipCursor
impl TipCursor
Sourcepub const fn new(
l2_safe_head: L2BlockInfo,
l2_safe_head_header: Sealed<Header>,
l2_safe_head_output_root: B256,
) -> Self
pub const fn new( l2_safe_head: L2BlockInfo, l2_safe_head_header: Sealed<Header>, l2_safe_head_output_root: B256, ) -> Self
Instantiates a new SyncCursor.
Sourcepub const fn l2_safe_head(&self) -> &L2BlockInfo
pub const fn l2_safe_head(&self) -> &L2BlockInfo
Returns the current L2 safe head.
Sourcepub const fn l2_safe_head_header(&self) -> &Sealed<Header>
pub const fn l2_safe_head_header(&self) -> &Sealed<Header>
Returns the header of the L2 safe head.
Sourcepub const fn l2_safe_head_output_root(&self) -> &B256
pub const fn l2_safe_head_output_root(&self) -> &B256
Returns the output root of the L2 safe head.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TipCursor
impl RefUnwindSafe for TipCursor
impl Send for TipCursor
impl Sync for TipCursor
impl Unpin for TipCursor
impl UnwindSafe for TipCursor
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