[−][src]Trait transact::context::ContextLifecycle
ContextManager functionality used by the Scheduler.
Required methods
fn create_context(
&mut self,
dependent_contexts: &[ContextId],
state_id: &str
) -> ContextId
&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>
&self,
context_id: &ContextId,
transaction_id: &str
) -> Result<TransactionReceipt, ContextManagerError>
fn clone_box(&self) -> Box<dyn ContextLifecycle>
Clone implementation for ContextLifecycle
. The implementation of the Clone
trait for
Box<dyn ContextLifecycle>
calls this method.
Implementors
impl ContextLifecycle for transact::context::manager::ContextManager
[src]
fn create_context(
&mut self,
dependent_contexts: &[ContextId],
state_id: &str
) -> ContextId
[src]
&mut self,
dependent_contexts: &[ContextId],
state_id: &str
) -> ContextId
Creates a Context, and returns the resulting ContextId.
fn drop_context(&mut self, _context_id: ContextId)
[src]
fn get_transaction_receipt(
&self,
context_id: &ContextId,
transaction_id: &str
) -> Result<TransactionReceipt, ContextManagerError>
[src]
&self,
context_id: &ContextId,
transaction_id: &str
) -> Result<TransactionReceipt, ContextManagerError>
Generates a valid TransactionReceipt
based on the information available within the
specified Context
.
fn clone_box(&self) -> Box<dyn ContextLifecycle>
[src]
impl ContextLifecycle for transact::context::manager::sync::ContextManager
[src]
fn create_context(
&mut self,
dependent_contexts: &[ContextId],
state_id: &str
) -> ContextId
[src]
&mut self,
dependent_contexts: &[ContextId],
state_id: &str
) -> ContextId
Creates a Context, and returns the resulting ContextId.
fn drop_context(&mut self, context_id: ContextId)
[src]
fn get_transaction_receipt(
&self,
context_id: &ContextId,
transaction_id: &str
) -> Result<TransactionReceipt, ContextManagerError>
[src]
&self,
context_id: &ContextId,
transaction_id: &str
) -> Result<TransactionReceipt, ContextManagerError>