[−][src]Trait rustracts::ContractExt
Extention trait for Contracts.
Associated Types
type Context
Return type of get_context
Required methods
fn get_context(&self) -> Result<Self::Context, ContextError>
Get a thread-safe handle to a ContractContext.
Implementors
impl<F, C, R> ContractExt for FuturesContract<F, C, R> where
C: ContractContext,
F: FnOnce(C) -> R,
[src]
C: ContractContext,
F: FnOnce(C) -> R,
type Context = LockWeak<Mutex<C>>
fn get_context(&self) -> Result<Self::Context, ContextError>
[src]
impl<F, C, R> ContractExt for OnKillContract<F, C, R> where
C: ContractContext,
F: FnOnce(C) -> R,
[src]
C: ContractContext,
F: FnOnce(C) -> R,
type Context = LockWeak<Mutex<C>>
fn get_context(&self) -> Result<Self::Context, ContextError>
[src]
impl<F, VC, PC, R> ContractExt for OptionContract<F, VC, PC, R> where
VC: ContractContext,
PC: ContractContext,
F: FnOnce((VC, PC)) -> R,
[src]
VC: ContractContext,
PC: ContractContext,
F: FnOnce((VC, PC)) -> R,