Struct openpgp_card::card_do::PWStatusBytes
source · [−]pub struct PWStatusBytes { /* private fields */ }
Expand description
PW status Bytes (see spec page 23)
Implementations
sourceimpl PWStatusBytes
impl PWStatusBytes
sourcepub fn set_pw1_pin_block(&mut self, val: bool)
pub fn set_pw1_pin_block(&mut self, val: bool)
Set format of PW1:
false
for UTF-8 or derived password,
true
for PIN block format 2.
sourcepub fn set_pw3_pin_block(&mut self, val: bool)
pub fn set_pw3_pin_block(&mut self, val: bool)
Set format of PW3:
false
for UTF-8 or derived password,
true
for PIN block format 2.
sourcepub fn pw1_cds_valid_once(&self) -> bool
pub fn pw1_cds_valid_once(&self) -> bool
Is PW1 (no. 81) only valid for one PSO:CDS command?
sourcepub fn set_pw1_cds_valid_once(&mut self, val: bool)
pub fn set_pw1_cds_valid_once(&mut self, val: bool)
Configure if PW1 (no. 81) is only valid for one PSO:CDS command.
sourcepub fn pw1_max_len(&self) -> u8
pub fn pw1_max_len(&self) -> u8
Max length of PW1
sourcepub fn rc_max_len(&self) -> u8
pub fn rc_max_len(&self) -> u8
Max length of Resetting Code (RC) for PW1
sourcepub fn pw3_max_len(&self) -> u8
pub fn pw3_max_len(&self) -> u8
Max length of PW3
sourcepub fn err_count_pw1(&self) -> u8
pub fn err_count_pw1(&self) -> u8
Error counter of PW1 (if 0, then PW1 is blocked).
sourcepub fn err_count_rc(&self) -> u8
pub fn err_count_rc(&self) -> u8
Error counter of Resetting Code (RC) (if 0, then RC is blocked).
sourcepub fn err_count_pw3(&self) -> u8
pub fn err_count_pw3(&self) -> u8
Error counter of PW3 (if 0, then PW3 is blocked).
Trait Implementations
sourceimpl Debug for PWStatusBytes
impl Debug for PWStatusBytes
sourceimpl PartialEq<PWStatusBytes> for PWStatusBytes
impl PartialEq<PWStatusBytes> for PWStatusBytes
sourcefn eq(&self, other: &PWStatusBytes) -> bool
fn eq(&self, other: &PWStatusBytes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PWStatusBytes) -> bool
fn ne(&self, other: &PWStatusBytes) -> bool
This method tests for !=
.
impl StructuralPartialEq for PWStatusBytes
Auto Trait Implementations
impl RefUnwindSafe for PWStatusBytes
impl Send for PWStatusBytes
impl Sync for PWStatusBytes
impl Unpin for PWStatusBytes
impl UnwindSafe for PWStatusBytes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more