[−][src]Trait interledger_settlement_engines::SettlementEngine
Trait consumed by the Settlement Engine HTTP API. Every settlement engine MUST implement this trait, so that it can be then be exposed over the API.
Required methods
fn send_money(
&self,
account_id: String,
money: Quantity
) -> Box<dyn Future<Item = ApiResponse, Error = ApiResponse> + Send>
&self,
account_id: String,
money: Quantity
) -> Box<dyn Future<Item = ApiResponse, Error = ApiResponse> + Send>
fn receive_message(
&self,
account_id: String,
message: Vec<u8>
) -> Box<dyn Future<Item = ApiResponse, Error = ApiResponse> + Send>
&self,
account_id: String,
message: Vec<u8>
) -> Box<dyn Future<Item = ApiResponse, Error = ApiResponse> + Send>
fn create_account(
&self,
account_id: CreateAccount
) -> Box<dyn Future<Item = ApiResponse, Error = ApiResponse> + Send>
&self,
account_id: CreateAccount
) -> Box<dyn Future<Item = ApiResponse, Error = ApiResponse> + Send>