Struct revm::Machine[][src]

pub struct Machine {
    pub contract: Contract,
    pub program_counter: *const u8,
    pub return_range: Range<usize>,
    pub memory: Memory,
    pub stack: Stack,
    pub return_data_buffer: Bytes,
    pub gas: Gas,
    pub call_depth: u64,
}

Fields

contract: Contract

Contract information and invoking data

program_counter: *const u8

Program counter.

return_range: Range<usize>

Return value.

memory: Memory

Memory.

stack: Stack

Stack.

return_data_buffer: Bytes

After call returns, its return data is saved here.

gas: Gas

left gas. Memory gas can be found in Memory field.

call_depth: u64

used only for inspector.

Implementations

Reference of machine stack.

Return a reference of the program counter.

loop steps until we are finished with execution

Copy and get the return value of the machine, if any.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.