pub struct ExecutionMessage { /* private fields */ }Expand description
EVMC execution message structure.
Implementations§
Source§impl ExecutionMessage
impl ExecutionMessage
pub fn new( kind: MessageKind, flags: u32, depth: i32, gas: i64, destination: Address, sender: Address, input: Option<&[u8]>, value: Uint256, create2_salt: Bytes32, ) -> Self
Sourcepub fn kind(&self) -> MessageKind
pub fn kind(&self) -> MessageKind
Read the message kind.
Sourcepub fn destination(&self) -> &Address
pub fn destination(&self) -> &Address
Read the destination address of the message.
Sourcepub fn create2_salt(&self) -> &Bytes32
pub fn create2_salt(&self) -> &Bytes32
Read the salt for CREATE2. Only valid if the message kind is CREATE2.
Trait Implementations§
Source§impl Debug for ExecutionMessage
impl Debug for ExecutionMessage
Source§impl From<&evmc_message> for ExecutionMessage
impl From<&evmc_message> for ExecutionMessage
Source§fn from(message: &evmc_message) -> Self
fn from(message: &evmc_message) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecutionMessage
impl RefUnwindSafe for ExecutionMessage
impl Send for ExecutionMessage
impl Sync for ExecutionMessage
impl Unpin for ExecutionMessage
impl UnwindSafe for ExecutionMessage
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