pub struct MessageWithMetadata {
pub message: L1IncomingMessage,
pub delayed_messages_read: u64,
}Expand description
An L1 incoming message with additional metadata.
Fields§
§message: L1IncomingMessage§delayed_messages_read: u64Implementations§
Source§impl MessageWithMetadata
impl MessageWithMetadata
Sourcepub fn abi_hash(&self) -> B256
pub fn abi_hash(&self) -> B256
ABI-style commitment hash fed into the MEL local message accumulator. Only includes MEL (minimum execution layer) consensus fields.
TODO: packed concatenation, not yet reconciled with the on-chain
abi.encode layout (Nitro’s MessageWithMetadata hashing uses RLP).
Sourcepub fn with_only_mel_consensus_fields(&self) -> Self
pub fn with_only_mel_consensus_fields(&self) -> Self
Returns a shallow copy with only consensus-relevant fields.
Trait Implementations§
Source§impl Clone for MessageWithMetadata
impl Clone for MessageWithMetadata
Source§fn clone(&self) -> MessageWithMetadata
fn clone(&self) -> MessageWithMetadata
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 MessageWithMetadata
impl Debug for MessageWithMetadata
Source§impl Decodable for MessageWithMetadata
impl Decodable for MessageWithMetadata
Source§impl Default for MessageWithMetadata
impl Default for MessageWithMetadata
Source§fn default() -> MessageWithMetadata
fn default() -> MessageWithMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MessageWithMetadata
impl RefUnwindSafe for MessageWithMetadata
impl Send for MessageWithMetadata
impl Sync for MessageWithMetadata
impl Unpin for MessageWithMetadata
impl UnwindSafe for MessageWithMetadata
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