[][src]Struct evm::Context

pub struct Context {
    pub address: Address,
    pub caller: Address,
    pub callee: Address,
    pub code: Rc<Vec<u8>>,
    pub data: Rc<Vec<u8>>,
    pub gas_limit: Gas,
    pub gas_price: Gas,
    pub origin: Address,
    pub value: U256,
    pub apprent_value: U256,
    pub is_system: bool,
    pub is_static: bool,
}

A VM context. See the Yellow Paper for more information.

Fields

address: Address

Address that is executing this runtime.

caller: Address

Caller of the runtime.

callee: Address

Actual call target. The same as address unless for CALLCODE.

code: Rc<Vec<u8>>

Code to be executed.

data: Rc<Vec<u8>>

Data associated with this execution.

gas_limit: Gas

Gas limit.

gas_price: Gas

Gas price.

origin: Address

The origin of the context. The same as caller when it is from a transaction.

value: U256

Value passed for this runtime.

apprent_value: U256

Apprent value in the execution context.

is_system: bool

Whether this represents a system call.

is_static: bool

Whether this call is static.

Trait Implementations

impl Clone for Context[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Context[src]

Auto Trait Implementations

impl !Send for Context

impl !Sync for Context

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self