[−][src]Struct grin_wallet_impls::LMDBBackend
Fields
keychain: Option<K>
Keychain
Methods
impl<C, K> LMDBBackend<C, K>
[src]
pub fn new(
config: WalletConfig,
passphrase: &str,
n_client: C
) -> Result<Self, Error>
[src]
config: WalletConfig,
passphrase: &str,
n_client: C
) -> Result<Self, Error>
pub fn exists(config: WalletConfig) -> bool
[src]
Just test to see if database files exist in the current directory. If so, use a DB backend for all operations
Trait Implementations
impl<C, K> WalletBackend<C, K> for LMDBBackend<C, K> where
C: NodeClient,
K: Keychain,
[src]
C: NodeClient,
K: Keychain,
fn open_with_credentials(&mut self) -> Result<(), Error>
[src]
Initialise with whatever stored credentials we have
fn close(&mut self) -> Result<(), Error>
[src]
Close wallet and remove any stored credentials (TBD)
fn keychain(&mut self) -> &mut K
[src]
Return the keychain being used
fn w2n_client(&mut self) -> &mut C
[src]
Return the node client being used
fn calc_commit_for_cache(
&mut self,
amount: u64,
id: &Identifier
) -> Result<Option<String>, Error>
[src]
&mut self,
amount: u64,
id: &Identifier
) -> Result<Option<String>, Error>
return the version of the commit for caching
fn set_parent_key_id_by_name(&mut self, label: &str) -> Result<(), Error>
[src]
Set parent path by account name
fn set_parent_key_id(&mut self, id: Identifier)
[src]
set parent path
fn parent_key_id(&mut self) -> Identifier
[src]
fn get(
&self,
id: &Identifier,
mmr_index: &Option<u64>
) -> Result<OutputData, Error>
[src]
&self,
id: &Identifier,
mmr_index: &Option<u64>
) -> Result<OutputData, Error>
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = OutputData> + 'a>
[src]
fn get_tx_log_entry(&self, u: &Uuid) -> Result<Option<TxLogEntry>, Error>
[src]
fn tx_log_iter<'a>(&'a self) -> Box<dyn Iterator<Item = TxLogEntry> + 'a>
[src]
fn get_private_context(&mut self, slate_id: &[u8]) -> Result<Context, Error>
[src]
fn acct_path_iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = AcctPathMapping> + 'a>
[src]
&'a self
) -> Box<dyn Iterator<Item = AcctPathMapping> + 'a>
fn get_acct_path(&self, label: String) -> Result<Option<AcctPathMapping>, Error>
[src]
fn store_tx(&self, uuid: &str, tx: &Transaction) -> Result<(), Error>
[src]
fn get_stored_tx(
&self,
entry: &TxLogEntry
) -> Result<Option<Transaction>, Error>
[src]
&self,
entry: &TxLogEntry
) -> Result<Option<Transaction>, Error>
fn batch<'a>(&'a mut self) -> Result<Box<dyn WalletOutputBatch<K> + 'a>, Error>
[src]
fn next_child<'a>(&mut self) -> Result<Identifier, Error>
[src]
fn last_confirmed_height<'a>(&mut self) -> Result<u64, Error>
[src]
fn restore(&mut self) -> Result<(), Error>
[src]
fn check_repair(&mut self, delete_unconfirmed: bool) -> Result<(), Error>
[src]
Auto Trait Implementations
impl<C, K> Send for LMDBBackend<C, K> where
C: Send,
K: Send,
C: Send,
K: Send,
impl<C, K> Sync for LMDBBackend<C, K> where
C: Sync,
K: Sync,
C: Sync,
K: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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> UnsafeAny for T where
T: Any,
T: Any,
impl<T> SafeBorrow for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T, C, K> WalletInst for T where
C: NodeClient,
K: Keychain,
T: WalletBackend<C, K> + Send + Sync + 'static,
[src]
C: NodeClient,
K: Keychain,
T: WalletBackend<C, K> + Send + Sync + 'static,