Can PocketIC store deployed canisters, stable memory and network topology between restarts?
For example I’ve started PocketIC server and set up some network topology T, also I’ve deployed canister A and canister B, and filled the stable memory. Then I’ve stopped the PocketIC server.
Is it possible to start it with already deployed canister A and B, and persisted stable memory (or even general memory) from the last run?
Where does PocketIC store it’s state? If a current versions of DFX uses PocketIC how DFX solves storing state between restarts?
I found nothing in a docs and on the forum
UPD:
I’ve found with_state and with_state_dir functions in client library sources: ic/packages/pocket-ic/src/lib.rs at master · dfinity/ic · GitHub
But there are absolutely no documentation. Can anybody explain how to use it?