Struct ethcore::executive::TransactOptions
source · [−]pub struct TransactOptions<T, V> {
pub tracer: T,
pub vm_tracer: V,
pub check_nonce: bool,
pub output_from_init_contract: bool,
}
Expand description
Transaction execution options.
Fields
tracer: T
Enable call tracing.
vm_tracer: V
Enable VM tracing.
check_nonce: bool
Check transaction nonce before execution.
output_from_init_contract: bool
Records the output from init contract calls.
Implementations
sourceimpl<T, V> TransactOptions<T, V>
impl<T, V> TransactOptions<T, V>
sourcepub fn new(tracer: T, vm_tracer: V) -> Self
pub fn new(tracer: T, vm_tracer: V) -> Self
Create new TransactOptions
with given tracer and VM tracer.
sourcepub fn dont_check_nonce(self) -> Self
pub fn dont_check_nonce(self) -> Self
Disables the nonce check
sourcepub fn save_output_from_contract(self) -> Self
pub fn save_output_from_contract(self) -> Self
Saves the output from contract creation.
sourceimpl TransactOptions<ExecutiveTracer, ExecutiveVMTracer>
impl TransactOptions<ExecutiveTracer, ExecutiveVMTracer>
sourcepub fn with_tracing_and_vm_tracing() -> Self
pub fn with_tracing_and_vm_tracing() -> Self
Creates new TransactOptions
with default tracing and VM tracing.
sourceimpl TransactOptions<ExecutiveTracer, NoopVMTracer>
impl TransactOptions<ExecutiveTracer, NoopVMTracer>
sourcepub fn with_tracing() -> Self
pub fn with_tracing() -> Self
Creates new TransactOptions
with default tracing and no VM tracing.
sourceimpl TransactOptions<NoopTracer, ExecutiveVMTracer>
impl TransactOptions<NoopTracer, ExecutiveVMTracer>
sourcepub fn with_vm_tracing() -> Self
pub fn with_vm_tracing() -> Self
Creates new TransactOptions
with no tracing and default VM tracing.
sourceimpl TransactOptions<NoopTracer, NoopVMTracer>
impl TransactOptions<NoopTracer, NoopVMTracer>
sourcepub fn with_no_tracing() -> Self
pub fn with_no_tracing() -> Self
Creates new TransactOptions
without any tracing.
Trait Implementations
sourceimpl<T: Clone, V: Clone> Clone for TransactOptions<T, V>
impl<T: Clone, V: Clone> Clone for TransactOptions<T, V>
sourcefn clone(&self) -> TransactOptions<T, V>
fn clone(&self) -> TransactOptions<T, V>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: PartialEq, V: PartialEq> PartialEq<TransactOptions<T, V>> for TransactOptions<T, V>
impl<T: PartialEq, V: PartialEq> PartialEq<TransactOptions<T, V>> for TransactOptions<T, V>
sourcefn eq(&self, other: &TransactOptions<T, V>) -> bool
fn eq(&self, other: &TransactOptions<T, V>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TransactOptions<T, V>) -> bool
fn ne(&self, other: &TransactOptions<T, V>) -> bool
This method tests for !=
.
impl<T: Copy, V: Copy> Copy for TransactOptions<T, V>
impl<T, V> StructuralPartialEq for TransactOptions<T, V>
Auto Trait Implementations
impl<T, V> RefUnwindSafe for TransactOptions<T, V> where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for TransactOptions<T, V> where
T: Send,
V: Send,
impl<T, V> Sync for TransactOptions<T, V> where
T: Sync,
V: Sync,
impl<T, V> Unpin for TransactOptions<T, V> where
T: Unpin,
V: Unpin,
impl<T, V> UnwindSafe for TransactOptions<T, V> where
T: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more