pub struct Access {
pub chain_id: [u8; 32],
pub block_number: u64,
pub timestamp: u64,
pub log_index: u32,
pub checksum: B256,
}Expand description
A structured representation of a parsed CrossL2Inbox message access entry.
Fields§
§chain_id: [u8; 32]Full 256-bit chain ID (combined from lookup + extension)
block_number: u64Block number in the source chain
timestamp: u64Timestamp of the message’s block
log_index: u32Log index of the message within the block
checksum: B256Provided checksum entry (prefix 0x03)
Implementations§
Source§impl Access
impl Access
Sourcepub fn verify_checksum(&self, log_hash: &B256) -> Result<(), AccessListError>
pub fn verify_checksum(&self, log_hash: &B256) -> Result<(), AccessListError>
Verify the checksums after recalculation
Sourcepub const fn validate_message_lifetime(
&self,
exec_ts: u64,
exec_ts_with_duration: u64,
expiry_window: u64,
) -> Result<(), AccessListError>
pub const fn validate_message_lifetime( &self, exec_ts: u64, exec_ts_with_duration: u64, expiry_window: u64, ) -> Result<(), AccessListError>
Checks the expiry and validity of the message
Trait Implementations§
impl Eq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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