pub struct SecureStorage { /* private fields */ }
Implementations§
Source§impl SecureStorage
impl SecureStorage
pub fn new(object_key: ObjectKey, crypto_key: CryptoKey) -> Self
pub async fn exists(object_key: ObjectKey) -> bool
pub fn object_key(&self) -> &ObjectKey
pub fn for_deletion(object_key: ObjectKey) -> Self
pub async fn save(&self, data: &[u8]) -> SecureStringResult<()>
pub async fn load(&self) -> SecureStringResult<Vec<u8>>
pub async fn delete(&self) -> SecureStringResult<()>
pub async fn empty(&self) -> SecureStringResult<()>
pub async fn update(&self, new_value: &str) -> SecureStringResult<()>
Trait Implementations§
Source§impl Clone for SecureStorage
impl Clone for SecureStorage
Source§fn clone(&self) -> SecureStorage
fn clone(&self) -> SecureStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SecureStorage
impl Debug for SecureStorage
Source§impl PartialEq for SecureStorage
impl PartialEq for SecureStorage
impl StructuralPartialEq for SecureStorage
Auto Trait Implementations§
impl Freeze for SecureStorage
impl RefUnwindSafe for SecureStorage
impl !Send for SecureStorage
impl !Sync for SecureStorage
impl Unpin for SecureStorage
impl UnwindSafe for SecureStorage
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