[−][src]Crate rustracts
A Contract is a structure that can be invalidated or expired, on expiration the execute method is called, depending on the contract it could produce a value or not. If the contract is not valid at the time of the check it will be voided and could produce a value depending on the contract.
Contracts are valid futures that can be run to completion on a reactor or awaited in an async block.
Re-exports
pub use context::ContractContext; |
Modules
context | Implementation of contexes to put in a contract. Contexes are elements that can be polled to verify wether their inner state is still considered valid or not. |
sync | Contains contract wakers. |
time | Time utilities |
Structs
FuturesContract | A FuturesContract produces a value from it's context at it's expire time if it has not been voided before. |
OnKillContract | Permanent contract that produces a value when it is voided by the underlying context |
OptionContract | Contract that produces a value if secondary context is valid at expiration |
Enums
Status | Status on completion/invalidation of a contract. |
Traits
Contract | Contract Trait |
ContractExt | Extention trait for Contracts. |