[][src]Trait interledger_router::RouterStore

pub trait RouterStore: AccountStore + Clone + Send + Sync + 'static {
    fn routing_table(
        &self
    ) -> HashMap<Bytes, <Self::Account as Account>::AccountId>; }

A trait for Store implmentations that have ILP routing tables.

Required methods

fn routing_table(&self) -> HashMap<Bytes, <Self::Account as Account>::AccountId>

Synchronously return a copy of the routing table. Note that this is synchronous because it assumes that Stores should keep the routing table in memory and use PubSub or polling to keep it updated. This ensures that individual packets can be routed without hitting the underlying store.

Loading content...

Implementors

Loading content...