[][src]Trait transact::context::ContextLifecycle

pub trait ContextLifecycle: Send {
    fn create_context(
        &mut self,
        dependent_contexts: &[ContextId],
        state_id: &str
    ) -> ContextId;
fn drop_context(&mut self, context_id: ContextId);
fn get_transaction_receipt(
        &self,
        context_id: &ContextId,
        transaction_id: &str
    ) -> Result<TransactionReceipt, ContextManagerError>; }

ContextManager functionality used by the Scheduler.

Required methods

fn create_context(
    &mut self,
    dependent_contexts: &[ContextId],
    state_id: &str
) -> ContextId

Create a new Context, returning a unique ContextId.

fn drop_context(&mut self, context_id: ContextId)

fn get_transaction_receipt(
    &self,
    context_id: &ContextId,
    transaction_id: &str
) -> Result<TransactionReceipt, ContextManagerError>

Loading content...

Implementors

impl ContextLifecycle for transact::context::manager::ContextManager[src]

fn create_context(
    &mut self,
    dependent_contexts: &[ContextId],
    state_id: &str
) -> ContextId
[src]

Creates a Context, and returns the resulting ContextId.

fn get_transaction_receipt(
    &self,
    context_id: &ContextId,
    transaction_id: &str
) -> Result<TransactionReceipt, ContextManagerError>
[src]

Creates a TransactionReceipt based on the information available within the specified Context.

impl ContextLifecycle for transact::context::manager::sync::ContextManager[src]

fn create_context(
    &mut self,
    dependent_contexts: &[ContextId],
    state_id: &str
) -> ContextId
[src]

Creates a Context, and returns the resulting ContextId.

Loading content...