pub enum PinBlockError {
InvalidPin,
RandomSeedTooShort {
minimum: usize,
actual: usize,
},
InvalidPinFieldLength {
expected: usize,
actual: usize,
},
InvalidControlField {
actual: u8,
},
InvalidDecodedPinLength {
actual: usize,
},
InvalidPinDigit,
InvalidFiller,
InvalidPan,
InvalidPinBlockLength {
expected: usize,
actual: usize,
},
InvalidIntermediateBlockLength {
expected: usize,
actual: usize,
},
Hex(FromHexError),
}Variants§
InvalidPin
RandomSeedTooShort
InvalidPinFieldLength
InvalidControlField
InvalidDecodedPinLength
InvalidPinDigit
InvalidFiller
InvalidPan
InvalidPinBlockLength
InvalidIntermediateBlockLength
Hex(FromHexError)
Trait Implementations§
Source§impl Debug for PinBlockError
impl Debug for PinBlockError
Source§impl Display for PinBlockError
impl Display for PinBlockError
Source§impl Error for PinBlockError
impl Error for PinBlockError
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()
Source§impl From<FromHexError> for PinBlockError
impl From<FromHexError> for PinBlockError
Source§fn from(error: FromHexError) -> Self
fn from(error: FromHexError) -> Self
Converts to this type from the input type.
Source§impl<E> From<PinBlockError> for PinBlockCryptoError<E>
impl<E> From<PinBlockError> for PinBlockCryptoError<E>
Source§fn from(error: PinBlockError) -> Self
fn from(error: PinBlockError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for PinBlockError
impl Freeze for PinBlockError
impl Move for PinBlockError
impl RefUnwindSafe for PinBlockError
impl Send for PinBlockError
impl Sync for PinBlockError
impl Unpin for PinBlockError
impl UnsafeUnpin for PinBlockError
impl UnwindSafe for PinBlockError
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