#[repr(u8)]pub enum SdSecuritySpecificField {
ReplayProtectedMemoryBlock = 1,
}
Expand description
Represents the sssf
field of the Argument.
The SD Security Specific Field indicates the security protocol to use for data transfers to the card.
Variants§
ReplayProtectedMemoryBlock = 1
Replay protected memory block.
This security mode provides a mechanism to securely write authenticated blocks to card memory, and protect against replay attacks.
Implementations§
Source§impl SdSecuritySpecificField
impl SdSecuritySpecificField
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new SdSecuritySpecificField.
Sourcepub const fn from_raw_unchecked(val: u8) -> Self
pub const fn from_raw_unchecked(val: u8) -> Self
Converts a u8
into a SdSecuritySpecificField.
§Panics
Panics if the passed value is an invalid variant
Sourcepub const fn from_raw(val: u8) -> Result<Self, Error>
pub const fn from_raw(val: u8) -> Result<Self, Error>
Attempts to convert a u8
into a SdSecuritySpecificField.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a SdSecuritySpecificField into a u8
.
Trait Implementations§
Source§impl Clone for SdSecuritySpecificField
impl Clone for SdSecuritySpecificField
Source§fn clone(&self) -> SdSecuritySpecificField
fn clone(&self) -> SdSecuritySpecificField
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 SdSecuritySpecificField
impl Debug for SdSecuritySpecificField
Source§impl Default for SdSecuritySpecificField
impl Default for SdSecuritySpecificField
Source§impl From<SdSecuritySpecificField> for u8
impl From<SdSecuritySpecificField> for u8
Source§fn from(val: SdSecuritySpecificField) -> Self
fn from(val: SdSecuritySpecificField) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SdSecuritySpecificField
impl PartialEq for SdSecuritySpecificField
Source§impl TryFrom<u8> for SdSecuritySpecificField
impl TryFrom<u8> for SdSecuritySpecificField
impl Copy for SdSecuritySpecificField
impl Eq for SdSecuritySpecificField
impl StructuralPartialEq for SdSecuritySpecificField
Auto Trait Implementations§
impl Freeze for SdSecuritySpecificField
impl RefUnwindSafe for SdSecuritySpecificField
impl Send for SdSecuritySpecificField
impl Sync for SdSecuritySpecificField
impl Unpin for SdSecuritySpecificField
impl UnwindSafe for SdSecuritySpecificField
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