pub trait SecureStore:
Send
+ Sync
+ 'static {
// Provided methods
fn read(&self, key: &str) -> Result<Option<Vec<u8>>, PlatformError> { ... }
fn contains(&self, key: &str) -> Result<bool, PlatformError> { ... }
fn write(&self, key: &str, value: &[u8]) -> Result<(), PlatformError> { ... }
fn delete(&self, key: &str) -> Result<(), PlatformError> { ... }
}Provided Methods§
Sourcefn read(&self, key: &str) -> Result<Option<Vec<u8>>, PlatformError>
fn read(&self, key: &str) -> Result<Option<Vec<u8>>, PlatformError>
Read a persisted value from a secure, app-scoped store that survives reinstall where supported.
Sourcefn contains(&self, key: &str) -> Result<bool, PlatformError>
fn contains(&self, key: &str) -> Result<bool, PlatformError>
Check whether a value exists in the secure store.