[][src]Struct transact::execution::adapter::static_adapter::StaticExecutionAdapter

pub struct StaticExecutionAdapter { /* fields omitted */ }

The StaticExecutionAdapter to wrap TransactionHandlers

This struct takes a series of transaction handlers which can be used to execution transactions. These transactions are executed on a single background thread.

Methods

impl StaticExecutionAdapter[src]

pub fn new_adapter(
    handlers: Vec<Box<dyn TransactionHandler>>,
    context_manager: ContextManager
) -> Result<Self, ExecutionAdapterError>
[src]

Creates a new adapter, if possible.

Creates a StaticExecutionAdapter wrapping the given TransactionHandler vector and a ContextManager instance. This adapter will dispatch transaction pairs to the appropriate handler, if found.

Errors

ExecutionAdapterError is returned if the background thread cannot be created.

Trait Implementations

impl ExecutionAdapter for StaticExecutionAdapter[src]

Auto Trait Implementations

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self