Trait ContractExt

Source
pub trait ContractExt: Contract {
    type Context;

    // Required method
    fn get_context(&self) -> Result<Self::Context, ContextError>;
}
Expand description

Extention trait for Contracts.

Required Associated Types§

Source

type Context

Return type of get_context

Required Methods§

Source

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

Get a thread-safe handle to a ContractContext.

Implementors§

Source§

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

Source§

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

Source§

impl<F, VC, PC, R> ContractExt for OptionContract<F, VC, PC, R>