Struct mashina::executive::TransactOptions[][src]

pub struct TransactOptions<T, V> {
    pub tracer: T,
    pub vm_tracer: V,
    pub check_nonce: bool,
    pub output_from_init_contract: bool,
}

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

impl<T, V> TransactOptions<T, V>[src]

pub fn new(tracer: T, vm_tracer: V) -> Self[src]

Create new TransactOptions with given tracer and VM tracer.

pub fn dont_check_nonce(self) -> Self[src]

Disables the nonce check

pub fn save_output_from_contract(self) -> Self[src]

Saves the output from contract creation.

impl TransactOptions<ExecutiveTracer, ExecutiveVMTracer>[src]

pub fn with_tracing_and_vm_tracing() -> Self[src]

Creates new TransactOptions with default tracing and VM tracing.

impl TransactOptions<ExecutiveTracer, NoopVMTracer>[src]

pub fn with_tracing() -> Self[src]

Creates new TransactOptions with default tracing and no VM tracing.

impl TransactOptions<NoopTracer, ExecutiveVMTracer>[src]

pub fn with_vm_tracing() -> Self[src]

Creates new TransactOptions with no tracing and default VM tracing.

impl TransactOptions<NoopTracer, NoopVMTracer>[src]

pub fn with_no_tracing() -> Self[src]

Creates new TransactOptions without any tracing.

Trait Implementations

impl<T: Clone, V: Clone> Clone for TransactOptions<T, V>[src]

impl<T: Copy, V: Copy> Copy for TransactOptions<T, V>[src]

impl<T: PartialEq, V: PartialEq> PartialEq<TransactOptions<T, V>> for TransactOptions<T, V>[src]

impl<T, V> StructuralPartialEq for TransactOptions<T, V>[src]

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

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,