# Struct ethcore::client::Executive [−] [src]

    pub struct Executive<'a> { /* fields omitted */ }

Transaction executor.

## Methods

### `impl<'a> Executive<'a>`
[src]

#### `fn new(state: &'a mut State,
info: &'a EnvInfo,
engine: &'a Engine,
vm_factory: &'a Factory)
-> Self`

Basic constructor.

#### `fn from_parent(state: &'a mut State,
info: &'a EnvInfo,
engine: &'a Engine,
vm_factory: &'a Factory,
parent_depth: usize)
-> Self`

Populates executive from parent properties. Increments executive depth.

#### `fn as_externalities<'any, T, V>(&'any mut self,
origin_info: OriginInfo,
substate: &'any mut Substate,
output: OutputPolicy<'any, 'any>,
tracer: &'any mut T,
vm_tracer: &'any mut V)
-> Externalities<'any, T, V> where T: Tracer, V: VMTracer`

Creates `Externalities` from `Executive`.

#### `fn transact(&'a mut self,
t: &SignedTransaction,
options: TransactOptions)
-> Result<Executed, ExecutionError>`

This function should be used to execute transaction.

#### `fn transact_with_tracer<T, V>(&'a mut self,
t: &SignedTransaction,
check_nonce: bool,
tracer: T,
vm_tracer: V)
-> Result<Executed, ExecutionError> where T: Tracer, V: VMTracer`

Execute transaction/call with tracing enabled

#### `fn call<T, V>(&mut self,
params: ActionParams,
substate: &mut Substate,
output: BytesRef,
tracer: &mut T,
vm_tracer: &mut V)
-> Result<U256> where T: Tracer, V: VMTracer`

Calls contract function with given contract params. NOTE. It does not finalize the transaction (doesn't do refunds, nor suicides). Modifies the substate and the output. Returns either gas_left or `evm::Error`.

#### `fn create<T, V>(&mut self,
params: ActionParams,
substate: &mut Substate,
tracer: &mut T,
vm_tracer: &mut V)
-> Result<U256> where T: Tracer, V: VMTracer`

Creates contract with given contract params. NOTE. It does not finalize the transaction (doesn't do refunds, nor suicides). Modifies the substate.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)