pub struct LocalPinStorage { /* private fields */ }Expand description
Local file system PIN storage
Stores PIN state as a JSON file in the storage directory.
Implementations§
Trait Implementations§
Source§impl PinStorage for LocalPinStorage
impl PinStorage for LocalPinStorage
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 LocalPinStorage
impl RefUnwindSafe for LocalPinStorage
impl Send for LocalPinStorage
impl Sync for LocalPinStorage
impl Unpin for LocalPinStorage
impl UnsafeUnpin for LocalPinStorage
impl UnwindSafe for LocalPinStorage
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