Function iota_wallet::storage::manager::new_storage_manager
source · [−]pub(crate) async fn new_storage_manager(
encryption_key: Option<[u8; 32]>,
storage: Box<dyn StorageAdapter + Send + Sync + 'static>
) -> Result<Arc<Mutex<StorageManager>>>
Expand description
Sets the storage adapter.