pub enum CardError {
NotPresent(String),
PinBlocked,
WrongPin {
attempts_remaining: u32,
},
SlotNotConfigured(OpenpgpSlot),
VerificationRequired(String),
Io(String),
}Expand description
Errors during OpenPGP card operations.
Variants§
NotPresent(String)
Card not present (no reader, no card inserted).
PinBlocked
PIN blocked (after too many wrong attempts).
WrongPin
Wrong PIN.
SlotNotConfigured(OpenpgpSlot)
Slot not configured (no key generated).
VerificationRequired(String)
Operation requires verification.
Io(String)
I/O error communicating with the card.
Trait Implementations§
Source§impl Error for CardError
impl Error for CardError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for CardError
impl RefUnwindSafe for CardError
impl Send for CardError
impl Sync for CardError
impl Unpin for CardError
impl UnsafeUnpin for CardError
impl UnwindSafe for CardError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more