summaryrefslogtreecommitdiff
path: root/tests/otp.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-27 15:04:19 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-07-08 21:27:03 +0000
commita52676d9577f587e0f4d8e47ddc71ba34f0b31ca (patch)
treee7388f2dfd391572bf92fce943748bec70d5e5d4 /tests/otp.rs
parent445e920986db276d0c5c39709aa76dd290773e8f (diff)
downloadnitrokey-rs-a52676d9577f587e0f4d8e47ddc71ba34f0b31ca.tar.gz
nitrokey-rs-a52676d9577f587e0f4d8e47ddc71ba34f0b31ca.tar.bz2
Add ConcurrentAccessError and PoisonError variants
This patch prepares the refactoring of the connection methods by introducing the Error variants ConcurrentAccessError and PoisonError. ConcurrentAccessError indicates that the user tried to connect to obtain a token that is currently locked, and PoisonError indicates that a lock has been poisoned, i. e. a thread panicked while accessing using a token.
Diffstat (limited to 'tests/otp.rs')
0 files changed, 0 insertions, 0 deletions