[−][src]Struct evmc_vm::ExecutionMessage
EVMC execution message structure.
Implementations
impl ExecutionMessage
[src]
pub fn new(
kind: MessageKind,
flags: u32,
depth: i32,
gas: i64,
destination: Address,
sender: Address,
input: Option<&[u8]>,
value: Uint256,
create2_salt: Bytes32
) -> Self
[src]
kind: MessageKind,
flags: u32,
depth: i32,
gas: i64,
destination: Address,
sender: Address,
input: Option<&[u8]>,
value: Uint256,
create2_salt: Bytes32
) -> Self
pub fn kind(&self) -> MessageKind
[src]
Read the message kind.
pub fn flags(&self) -> u32
[src]
Read the message flags.
pub fn depth(&self) -> i32
[src]
Read the call depth.
pub fn gas(&self) -> i64
[src]
Read the gas limit supplied with the message.
pub fn destination(&self) -> &Address
[src]
Read the destination address of the message.
pub fn sender(&self) -> &Address
[src]
Read the sender address of the message.
pub fn input(&self) -> Option<&Vec<u8>>
[src]
Read the optional input message.
pub fn value(&self) -> &Uint256
[src]
Read the value of the message.
pub fn create2_salt(&self) -> &Bytes32
[src]
Read the salt for CREATE2. Only valid if the message kind is CREATE2.
Trait Implementations
impl Debug for ExecutionMessage
[src]
impl<'_> From<&'_ evmc_message> for ExecutionMessage
[src]
fn from(message: &evmc_message) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExecutionMessage
impl Send for ExecutionMessage
impl Sync for ExecutionMessage
impl Unpin for ExecutionMessage
impl UnwindSafe for ExecutionMessage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,