Enum EfError
#[non_exhaustive]pub enum EfError {
Length {
len: usize,
},
Digit {
position: usize,
nibble: u8,
},
Identity {
nibble: u8,
},
NoDigits,
}Expand description
Error from decoding the content of an elementary file.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Length
The file has an invalid length.
Digit
A nibble is not a valid digit.
Fields
Identity
The first nibble after the IMSI length byte is not an IMSI identity.
NoDigits
The file doesn’t contain digits.
Trait Implementations§
impl Copy for EfError
impl Eq for EfError
§impl Error for EfError
impl Error for EfError
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()
impl StructuralPartialEq for EfError
Auto Trait Implementations§
impl Freeze for EfError
impl RefUnwindSafe for EfError
impl Send for EfError
impl Sync for EfError
impl Unpin for EfError
impl UnsafeUnpin for EfError
impl UnwindSafe for EfError
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