pub struct PilotCredentialStore { /* private fields */ }Implementations§
Source§impl PilotCredentialStore
impl PilotCredentialStore
pub fn open(root: impl Into<PathBuf>) -> Self
pub fn for_data_dir(data_dir: impl AsRef<Path>) -> Self
pub fn init(&self) -> Result<(), PilotKeyStoreError>
pub fn set_credential( &self, pilot_id: &PilotId, access_pin: &str, ) -> Result<(), PilotKeyStoreError>
pub fn verify_credential( &self, pilot_id: &PilotId, access_pin: &str, ) -> Result<bool, PilotKeyStoreError>
Trait Implementations§
Source§impl Clone for PilotCredentialStore
impl Clone for PilotCredentialStore
Source§fn clone(&self) -> PilotCredentialStore
fn clone(&self) -> PilotCredentialStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PilotCredentialStore
impl RefUnwindSafe for PilotCredentialStore
impl Send for PilotCredentialStore
impl Sync for PilotCredentialStore
impl Unpin for PilotCredentialStore
impl UnsafeUnpin for PilotCredentialStore
impl UnwindSafe for PilotCredentialStore
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