[−][src]Struct interledger_store_memory::InMemoryStore
A simple in-memory store intended primarily for testing and stateless sender/receiver services that are passed all of the relevant account details when the store is instantiated.
Methods
impl InMemoryStore
[src]
pub fn new(accounts: impl IntoIterator<Item = AccountBuilder>) -> Self
[src]
pub fn default() -> Self
[src]
pub fn from_accounts(accounts: impl IntoIterator<Item = Account>) -> Self
[src]
Trait Implementations
impl Clone for InMemoryStore
[src]
fn clone(&self) -> InMemoryStore
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl AccountStore for InMemoryStore
[src]
type Account = Account
fn get_accounts(
&self,
accounts_ids: Vec<u64>
) -> Box<dyn Future<Item = Vec<Account>, Error = ()> + Send>
[src]
&self,
accounts_ids: Vec<u64>
) -> Box<dyn Future<Item = Vec<Account>, Error = ()> + Send>
impl BtpStore for InMemoryStore
[src]
type Account = Account
fn get_account_from_btp_token(
&self,
token: &str,
username: Option<&str>
) -> Box<dyn Future<Item = Self::Account, Error = ()> + Send>
[src]
&self,
token: &str,
username: Option<&str>
) -> Box<dyn Future<Item = Self::Account, Error = ()> + Send>
impl BtpOpenSignupStore for InMemoryStore
[src]
type Account = Account
fn create_btp_account<'a>(
&self,
account: BtpOpenSignupAccount<'a>
) -> Box<dyn Future<Item = Self::Account, Error = ()> + Send>
[src]
&self,
account: BtpOpenSignupAccount<'a>
) -> Box<dyn Future<Item = Self::Account, Error = ()> + Send>
impl HttpStore for InMemoryStore
[src]
type Account = Account
fn get_account_from_http_auth(
&self,
auth_header: &str
) -> Box<dyn Future<Item = Account, Error = ()> + Send>
[src]
&self,
auth_header: &str
) -> Box<dyn Future<Item = Account, Error = ()> + Send>
impl RouterStore for InMemoryStore
[src]
fn routing_table(&self) -> HashMap<Bytes, u64>
[src]
Auto Trait Implementations
impl Send for InMemoryStore
impl Sync for InMemoryStore
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self