pub struct Vault { /* private fields */ }Implementations§
Source§impl Vault
impl Vault
pub fn open() -> Result<Self>
pub fn purge() -> Result<()>
pub fn device_unique_name(&self) -> Result<String>
pub fn write_credential(&self, credential: &CredentialRef<'_>) -> Result<()>
pub fn read_credential( &self, credential_id: &[u8], ) -> Result<Option<Credential>>
pub fn delete_credential(&self, credential_id: &[u8]) -> Result<bool>
pub fn list_credentials( &self, rp_id: &str, user_id: Option<&[u8]>, ) -> Result<Vec<Credential>>
pub fn all_credentials(&self) -> Result<Vec<Credential>>
pub fn credential_summaries(&self) -> Result<Vec<CredentialSummary>>
pub fn credential_count(&self) -> Result<usize>
pub fn enumerate_rps(&self) -> Result<Vec<(String, Option<String>, usize)>>
pub fn pin_storage(&self) -> VaultPinStorage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vault
impl RefUnwindSafe for Vault
impl Send for Vault
impl Sync for Vault
impl Unpin for Vault
impl UnsafeUnpin for Vault
impl UnwindSafe for Vault
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