Struct ethstore::accounts_dir::MemoryDirectory
source · [−]pub struct MemoryDirectory { /* private fields */ }
Expand description
Accounts in-memory storage.
Trait Implementations
sourceimpl Default for MemoryDirectory
impl Default for MemoryDirectory
sourcefn default() -> MemoryDirectory
fn default() -> MemoryDirectory
Returns the “default value” for a type. Read more
sourceimpl KeyDirectory for MemoryDirectory
impl KeyDirectory for MemoryDirectory
sourcefn update(&self, account: SafeAccount) -> Result<SafeAccount, Error>
fn update(&self, account: SafeAccount) -> Result<SafeAccount, Error>
Update key in the directory
sourcefn insert(&self, account: SafeAccount) -> Result<SafeAccount, Error>
fn insert(&self, account: SafeAccount) -> Result<SafeAccount, Error>
Insert new key to directory
sourcefn unique_repr(&self) -> Result<u64, Error>
fn unique_repr(&self) -> Result<u64, Error>
Unique representation of directory account collection
sourcefn as_vault_provider(&self) -> Option<&dyn VaultKeyDirectoryProvider>
fn as_vault_provider(&self) -> Option<&dyn VaultKeyDirectoryProvider>
Return vault provider, if available
Auto Trait Implementations
impl !RefUnwindSafe for MemoryDirectory
impl Send for MemoryDirectory
impl Sync for MemoryDirectory
impl Unpin for MemoryDirectory
impl UnwindSafe for MemoryDirectory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more