pub trait Processing {
    // Required methods
    fn on_start(&self) -> DispatchResult;
    fn on_finish(&self, success: bool) -> DispatchResult;
}
Expand description

Transaction processing of agreement. Usually it consists of balance locking and transfers when liability successfully finished.

Required Methods§

source

fn on_start(&self) -> DispatchResult

This method called each time when liability started.

source

fn on_finish(&self, success: bool) -> DispatchResult

This method called each time when liability finished.

Implementors§

source§

impl<T, A, S> Processing for SignedAgreement<T, (), A, S>

source§

impl<T, C, A, S> Processing for SignedAgreement<T, SimpleMarket<A, C>, A, S>where C: ReservableCurrency<A>,