pub enum StatusCode {
Show 23 variants
Other(u8),
Ack,
NoChanges,
OutOfMemory,
IllegalCommand,
IntegrityError,
KeyDoesNotExist,
WrongCommandLength,
PermissionDenied,
IncorrectArguments,
ApplicationDoesNotExist,
ApplicationIntegrityError,
AuthenticationError,
AdditionalData,
LimitExceeded,
CardIntegrityError,
CommandAborted,
CardDisabled,
InvalidApplication,
DuplicateApplication,
EepromError,
FileNotFound,
FileIntegrityError,
}Expand description
Commands we can ask the card for
Variants§
Other(u8)
Unknown status code
Ack
Everything’s OK!
NoChanges
No changes
OutOfMemory
Out of memory
IllegalCommand
Illegal Command
IntegrityError
Integrity error
KeyDoesNotExist
Key does not exist
WrongCommandLength
Wrong command length
PermissionDenied
Permission denied
IncorrectArguments
Incorrect command arguments
ApplicationDoesNotExist
Application does not exist
ApplicationIntegrityError
Application integrity error
AuthenticationError
Authentication error
AdditionalData
Additional Data
LimitExceeded
Limit exceeded
CardIntegrityError
Card integrity error
CommandAborted
Command aborted
CardDisabled
Card disabled
InvalidApplication
Invalid application
DuplicateApplication
Duplicate application
EepromError
EEPROM error
FileNotFound
File not found
FileIntegrityError
File integrity error
Implementations§
Source§impl StatusCode
impl StatusCode
Sourcepub fn as_u8(&self) -> u8
pub fn as_u8(&self) -> u8
Convert the StatusCode into a u8
Sourcepub fn from_u8(v: u8) -> Self
pub fn from_u8(v: u8) -> Self
Convert a u8 into a StatusCode.
Trait Implementations§
Source§impl Clone for StatusCode
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StatusCode
Source§impl Debug for StatusCode
impl Debug for StatusCode
Source§impl From<StatusCode> for u8
impl From<StatusCode> for u8
Source§fn from(sc: StatusCode) -> Self
fn from(sc: StatusCode) -> Self
Converts to this type from the input type.
Source§impl From<u8> for StatusCode
impl From<u8> for StatusCode
Source§impl PartialEq for StatusCode
impl PartialEq for StatusCode
impl StructuralPartialEq for StatusCode
Auto Trait Implementations§
impl Freeze for StatusCode
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnsafeUnpin for StatusCode
impl UnwindSafe for StatusCode
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