SecretStoreHandle
pub struct SecretStoreHandle { /* private fields */ }A low-level interface to Secret Store.
Methods here are typically exposed as the try_* APIs on
crate::secret_store::SecretStore and should not be needed directly.
Constants
An invalid secret store handle.
Methods
contains
View sourceReturn true if the secret store contains a secret with the given name.
Parameters
- self: &Self
- name: &str
Returns
from_u32
View sourceunsafe fn from_u32(handle: u32) -> SelfMake a handle from its underlying representation.
This should only be used when calling the raw ABI directly, and care should be taken not to reuse or alias handle values.
Parameters
- handle: u32
Returns
get
View sourceLookup a secret in this Secret Store, and return a handle to it.
If successful, this function returns Ok(Some(_)) if a secret was found, or Ok(None) if
no secret with the given name was found. If the lookup failed, a LookupError will be
returned.
Parameters
- self: &Self
- secret_name: &str
Returns
open
View sourceAcquire a handle to a Secret Store.
If a handle could not be acquired, an OpenError will be returned.
Parameters
- secret_store_name: &str
Returns