[][src]Trait rustracts::ContractExt

pub trait ContractExt: Contract {
    type Context;
    fn get_context(&self) -> Result<Self::Context, ContextError>;
}

Extention trait for Contracts.

Associated Types

type Context

Return type of get_context

Loading content...

Required methods

fn get_context(&self) -> Result<Self::Context, ContextError>

Get a thread-safe handle to a ContractContext.

Loading content...

Implementors

impl<F, C, R> ContractExt for FuturesContract<F, C, R> where
    C: ContractContext,
    F: FnOnce(C) -> R, 
[src]

impl<F, C, R> ContractExt for OnKillContract<F, C, R> where
    C: ContractContext,
    F: FnOnce(C) -> R, 
[src]

impl<F, VC, PC, R> ContractExt for OptionContract<F, VC, PC, R> where
    VC: ContractContext,
    PC: ContractContext,
    F: FnOnce((VC, PC)) -> R, 
[src]

Loading content...