[−][src]Trait interledger_router::RouterStore
A trait for Store implmentations that have ILP routing tables.
Required methods
fn routing_table(
&self
) -> Arc<HashMap<String, <Self::Account as Account>::AccountId>>
&self
) -> Arc<HashMap<String, <Self::Account as Account>::AccountId>>
Synchronously return 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. An Arc is returned to avoid copying the underlying data while processing each packet.