aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-07-09 10:44:45 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-07-09 12:47:26 +0200
commit5e8f0fbaf6df0cb919e4b02401cc21d5280bf09c (patch)
tree2495451253d9634e2ef1b5f4972bea93d634c2d7 /Cargo.toml
parent88b32f5c2187e59fece93cd245aeadb4e5f9e04a (diff)
downloadnitrokey-rs-5e8f0fbaf6df0cb919e4b02401cc21d5280bf09c.tar.gz
nitrokey-rs-5e8f0fbaf6df0cb919e4b02401cc21d5280bf09c.tar.bz2
Add force_take function to ignore poisoned cache
The take and take_blocking functions return a PoisonError if the cache is poisoned, i. e. if a thread panicked while holding the manager. This is a sensible default behaviour, but for example during testing, one might want to ignore the poisoned cache. This patch adds the force_take function that unwraps the PoisonError and returns the cached Manager even if the cache was poisoned.
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions