Matthias Beyer
0cdeeb4c55
We must return an error if the file is not found here. This is because if we unwrap() here, we panic if the store action was Store::retrieve() and there wasn't a file there. We then unwrap() on None and panic because of this, causing all other tests to panic as well because the Mutex gets corrupted. The store handles FileNotFound errors on its own, so it is safe to return the error here. |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Cargo.toml | ||
README.md |
libimagstore
The store is the heart of everything. Here lives the data, the complexity and the performance bottleneck.
The store offeres read/write access to all entries, a hook system to do on-the-fly modification of incoming/outgoing files and so on.
The store itself does not offer functionality, but has a commandline interface "imag-store" which can do basic things with the store.