pub struct FileBasedWalletStore { /* private fields */ }Expand description
File-based wallet store using JSON format.
Saves wallet state to a JSON file with atomic writes and restricted file permissions. Suitable for development and testing; production wallets should use encrypted storage.
Implementations§
Trait Implementations§
Source§impl WalletStore for FileBasedWalletStore
impl WalletStore for FileBasedWalletStore
Source§fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot: &'life1 WalletSnapshot,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot: &'life1 WalletSnapshot,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Save a wallet state snapshot to persistent storage. Read more
Auto Trait Implementations§
impl Freeze for FileBasedWalletStore
impl RefUnwindSafe for FileBasedWalletStore
impl Send for FileBasedWalletStore
impl Sync for FileBasedWalletStore
impl Unpin for FileBasedWalletStore
impl UnsafeUnpin for FileBasedWalletStore
impl UnwindSafe for FileBasedWalletStore
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