pub enum FormatError {
NonDigit {
position: usize,
},
OutOfRange,
}Expand description
Errors returned when a PIN or PUK does not match the expected format.
Variants§
NonDigit
One of the bytes was not an ASCII digit '0'..='9'.
OutOfRange
A numeric argument fell outside its accepted range (e.g. a config-zone block index greater than 3).
Trait Implementations§
Source§impl Clone for FormatError
impl Clone for FormatError
Source§fn clone(&self) -> FormatError
fn clone(&self) -> FormatError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatError
impl Debug for FormatError
Source§impl<HalError> From<FormatError> for CryptoServiceError<HalError>where
HalError: Debug,
impl<HalError> From<FormatError> for CryptoServiceError<HalError>where
HalError: Debug,
Source§fn from(err: FormatError) -> Self
fn from(err: FormatError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FormatError
impl PartialEq for FormatError
impl Copy for FormatError
impl Eq for FormatError
impl StructuralPartialEq for FormatError
Auto Trait Implementations§
impl Freeze for FormatError
impl RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnsafeUnpin for FormatError
impl UnwindSafe for FormatError
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