pub struct PassPinStorage { /* private fields */ }Expand description
Pass (password-store) PIN storage
Stores PIN state as two GPG-encrypted entries in the password store:
pin_state.gpg: PIN config (hash, min length, version) - synced to gitpin_retries.gpg: Retry counters (retries, uv_retries, locked_until) - local only
Implementations§
Source§impl PassPinStorage
impl PassPinStorage
Sourcepub fn new(
store_path: PathBuf,
fido2_path: PathBuf,
gpg_backend: GpgBackend,
) -> Self
pub fn new( store_path: PathBuf, fido2_path: PathBuf, gpg_backend: GpgBackend, ) -> Self
Create a new Pass PIN storage
Trait Implementations§
Source§impl PinStorage for PassPinStorage
impl PinStorage for PassPinStorage
Source§fn load_pin_state(&self) -> Result<PinState, StatusCode>
fn load_pin_state(&self) -> Result<PinState, StatusCode>
Load PIN state from storage Read more
Source§fn save_pin_state(&self, state: &PinState) -> Result<(), StatusCode>
fn save_pin_state(&self, state: &PinState) -> Result<(), StatusCode>
Save PIN state to storage
Auto Trait Implementations§
impl !Freeze for PassPinStorage
impl RefUnwindSafe for PassPinStorage
impl Send for PassPinStorage
impl Sync for PassPinStorage
impl Unpin for PassPinStorage
impl UnsafeUnpin for PassPinStorage
impl UnwindSafe for PassPinStorage
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