Struct cfxstore::accounts_dir::MemoryDirectory
source · pub struct MemoryDirectory { /* private fields */ }
Expand description
Accounts in-memory storage.
Trait Implementations§
source§impl Default for MemoryDirectory
impl Default for MemoryDirectory
source§fn default() -> MemoryDirectory
fn default() -> MemoryDirectory
Returns the “default value” for a type. Read more
source§impl KeyDirectory for MemoryDirectory
impl KeyDirectory for MemoryDirectory
source§fn update(&self, account: SafeAccount) -> Result<SafeAccount, Error>
fn update(&self, account: SafeAccount) -> Result<SafeAccount, Error>
Update key in the directory
source§fn insert(&self, account: SafeAccount) -> Result<SafeAccount, Error>
fn insert(&self, account: SafeAccount) -> Result<SafeAccount, Error>
Insert new key to directory
source§fn unique_repr(&self) -> Result<u64, Error>
fn unique_repr(&self) -> Result<u64, Error>
Unique representation of directory account collection
source§fn 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more