[][src]Trait interledger::api::NodeStore

pub trait NodeStore: 'static + Send + Sync + Clone + AddressStore {
    type Account: Account;
    fn insert_account(
        &self,
        account: AccountDetails
    ) -> Box<dyn Future<Item = Self::Account, Error = ()> + 'static + Send>;
fn delete_account(
        &self,
        id: <Self::Account as Account>::AccountId
    ) -> Box<dyn Future<Item = Self::Account, Error = ()> + 'static + Send>;
fn update_account(
        &self,
        id: <Self::Account as Account>::AccountId,
        account: AccountDetails
    ) -> Box<dyn Future<Item = Self::Account, Error = ()> + 'static + Send>;
fn modify_account_settings(
        &self,
        id: <Self::Account as Account>::AccountId,
        settings: AccountSettings
    ) -> Box<dyn Future<Item = Self::Account, Error = ()> + 'static + Send>;
fn get_all_accounts(
        &self
    ) -> Box<dyn Future<Item = Vec<Self::Account>, Error = ()> + 'static + Send>;
fn set_static_routes<R>(
        &self,
        routes: R
    ) -> Box<dyn Future<Item = (), Error = ()> + 'static + Send>
    where
        R: IntoIterator<Item = (String, <Self::Account as Account>::AccountId)>
;
fn set_static_route(
        &self,
        prefix: String,
        account_id: <Self::Account as Account>::AccountId
    ) -> Box<dyn Future<Item = (), Error = ()> + 'static + Send>;
fn set_default_route(
        &self,
        account_id: <Self::Account as Account>::AccountId
    ) -> Box<dyn Future<Item = (), Error = ()> + 'static + Send>;
fn set_settlement_engines(
        &self,
        asset_to_url_map: impl IntoIterator<Item = (String, Url)>
    ) -> Box<dyn Future<Item = (), Error = ()> + 'static + Send>;
fn get_asset_settlement_engine(
        &self,
        asset_code: &str
    ) -> Box<dyn Future<Item = Option<Url>, Error = ()> + 'static + Send>; }

Associated Types

Loading content...

Required methods

fn insert_account(
    &self,
    account: AccountDetails
) -> Box<dyn Future<Item = Self::Account, Error = ()> + 'static + Send>

fn delete_account(
    &self,
    id: <Self::Account as Account>::AccountId
) -> Box<dyn Future<Item = Self::Account, Error = ()> + 'static + Send>

fn update_account(
    &self,
    id: <Self::Account as Account>::AccountId,
    account: AccountDetails
) -> Box<dyn Future<Item = Self::Account, Error = ()> + 'static + Send>

fn modify_account_settings(
    &self,
    id: <Self::Account as Account>::AccountId,
    settings: AccountSettings
) -> Box<dyn Future<Item = Self::Account, Error = ()> + 'static + Send>

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

fn set_static_routes<R>(
    &self,
    routes: R
) -> Box<dyn Future<Item = (), Error = ()> + 'static + Send> where
    R: IntoIterator<Item = (String, <Self::Account as Account>::AccountId)>, 

fn set_static_route(
    &self,
    prefix: String,
    account_id: <Self::Account as Account>::AccountId
) -> Box<dyn Future<Item = (), Error = ()> + 'static + Send>

fn set_default_route(
    &self,
    account_id: <Self::Account as Account>::AccountId
) -> Box<dyn Future<Item = (), Error = ()> + 'static + Send>

fn set_settlement_engines(
    &self,
    asset_to_url_map: impl IntoIterator<Item = (String, Url)>
) -> Box<dyn Future<Item = (), Error = ()> + 'static + Send>

fn get_asset_settlement_engine(
    &self,
    asset_code: &str
) -> Box<dyn Future<Item = Option<Url>, Error = ()> + 'static + Send>

Loading content...

Implementors

impl NodeStore for RedisStore[src]

type Account = Account

Loading content...