pub struct PwStatus {
pub pw1_valid_multiple: bool,
pub max_pw1: u8,
pub max_rc: u8,
pub max_pw3: u8,
pub tries_pw1: u8,
pub tries_rc: u8,
pub tries_pw3: u8,
}Expand description
PW status bytes (C4), parsed from the 7-byte form.
The 4-byte legacy form omits the max-length triplet; this parser requires the
7-byte form (OpenPGP Card v3.x), returning ParseError::UnexpectedLength
otherwise.
Fields§
§pw1_valid_multiple: boolByte 0: whether PW1 stays valid for multiple PSO:CDS commands (01) or
only one (00).
max_pw1: u8Byte 1: maximum length / format of PW1.
max_rc: u8Byte 2: maximum length of the resetting code (RC).
max_pw3: u8Byte 3: maximum length of PW3.
tries_pw1: u8Byte 4: remaining retry counter for PW1.
tries_rc: u8Byte 5: remaining retry counter for the resetting code.
tries_pw3: u8Byte 6: remaining retry counter for PW3.
Trait Implementations§
impl Copy for PwStatus
impl Eq for PwStatus
impl StructuralPartialEq for PwStatus
Auto Trait Implementations§
impl Freeze for PwStatus
impl RefUnwindSafe for PwStatus
impl Send for PwStatus
impl Sync for PwStatus
impl Unpin for PwStatus
impl UnsafeUnpin for PwStatus
impl UnwindSafe for PwStatus
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