pub struct EnrichedExecutingMessage {
pub inner: ExecutingMessage,
pub executing_chain_id: u64,
pub executing_timestamp: u64,
}Expand description
A wrapper type for ExecutingMessage containing the chain ID of the chain that the message was executed on.
Fields§
§inner: ExecutingMessageThe inner ExecutingMessage.
executing_chain_id: u64The chain ID of the chain that the message was executed on.
executing_timestamp: u64The timestamp of the block that the executing message was included in.
Implementations§
Source§impl EnrichedExecutingMessage
impl EnrichedExecutingMessage
Sourcepub const fn new(
inner: ExecutingMessage,
executing_chain_id: u64,
executing_timestamp: u64,
) -> Self
pub const fn new( inner: ExecutingMessage, executing_chain_id: u64, executing_timestamp: u64, ) -> Self
Create a new EnrichedExecutingMessage from an ExecutingMessage and a chain ID.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnrichedExecutingMessage
impl RefUnwindSafe for EnrichedExecutingMessage
impl Send for EnrichedExecutingMessage
impl Sync for EnrichedExecutingMessage
impl Unpin for EnrichedExecutingMessage
impl UnwindSafe for EnrichedExecutingMessage
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> 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