[][src]Trait interledger_ccp::RouteManagerStore

pub trait RouteManagerStore: Clone {
    type Account: CcpRoutingAccount;
    fn get_local_and_configured_routes(
        &self
    ) -> Box<dyn Future<Item = (HashMap<Bytes, Self::Account>, HashMap<Bytes, Self::Account>), Error = ()> + Send>;
fn get_accounts_to_send_routes_to(
        &self,
        ignore_accounts: Vec<<Self::Account as Account>::AccountId>
    ) -> Box<dyn Future<Item = Vec<Self::Account>, Error = ()> + Send>;
fn get_accounts_to_receive_routes_from(
        &self
    ) -> Box<dyn Future<Item = Vec<Self::Account>, Error = ()> + Send>;
fn set_routes(
        &mut self,
        routes: impl IntoIterator<Item = (Bytes, Self::Account)>
    ) -> Box<dyn Future<Item = (), Error = ()> + Send>; }

Associated Types

Loading content...

Required methods

fn get_local_and_configured_routes(
    &self
) -> Box<dyn Future<Item = (HashMap<Bytes, Self::Account>, HashMap<Bytes, Self::Account>), Error = ()> + Send>

fn get_accounts_to_send_routes_to(
    &self,
    ignore_accounts: Vec<<Self::Account as Account>::AccountId>
) -> Box<dyn Future<Item = Vec<Self::Account>, Error = ()> + Send>

fn get_accounts_to_receive_routes_from(
    &self
) -> Box<dyn Future<Item = Vec<Self::Account>, Error = ()> + Send>

fn set_routes(
    &mut self,
    routes: impl IntoIterator<Item = (Bytes, Self::Account)>
) -> Box<dyn Future<Item = (), Error = ()> + Send>

Loading content...

Implementors

Loading content...