[−][src]Trait rustracts::Contract
Contract Trait
Required methods
fn execute(&self) -> Self::Output
Produce a status of the contract on expiration.
fn void(&self) -> Self::Output
Produce a status of the contract on cancel.
Provided methods
fn is_valid(&self) -> bool
Check wether the contract is still valid. Always true by default.
fn is_expired(&self) -> bool
Check wether the contract has expired. Always false by default.
Implementors
impl<F, C, R> Contract for FuturesContract<F, C, R> where
C: ContractContext + Clone,
F: FnOnce(C) -> R + Clone,
[src]
C: ContractContext + Clone,
F: FnOnce(C) -> R + Clone,
fn is_valid(&self) -> bool
[src]
fn is_expired(&self) -> bool
[src]
fn execute(&self) -> Self::Output
[src]
fn void(&self) -> Self::Output
[src]
impl<F, C, R> Contract for OnKillContract<F, C, R> where
C: ContractContext + Clone,
F: FnOnce(C) -> R + Clone,
[src]
C: ContractContext + Clone,
F: FnOnce(C) -> R + Clone,
fn is_valid(&self) -> bool
[src]
fn is_expired(&self) -> bool
[src]
fn execute(&self) -> Self::Output
[src]
fn void(&self) -> Self::Output
[src]
impl<F, VC, PC, R> Contract for OptionContract<F, VC, PC, R> where
VC: ContractContext + Clone,
PC: ContractContext + Clone,
F: FnOnce((VC, PC)) -> R + Clone,
[src]
VC: ContractContext + Clone,
PC: ContractContext + Clone,
F: FnOnce((VC, PC)) -> R + Clone,