pub struct SqlCipherKeyring { /* private fields */ }Available on crate feature
file only.Implementations§
Source§impl SqlCipherKeyring
impl SqlCipherKeyring
Sourcepub fn rekey(&self, new_params: &ConnectionParams) -> Result<()>
pub fn rekey(&self, new_params: &ConnectionParams) -> Result<()>
Re-encrypt the entire database with a new key derived from new_params.
The keyring must already be open (authenticated with the current key).
After a successful rekey the current connection uses the new key;
any future opens must use new_params.
Sourcepub fn with_params(
connection: &ConnectionParams,
path: Option<PathBuf>,
) -> Result<Self>
pub fn with_params( connection: &ConnectionParams, path: Option<PathBuf>, ) -> Result<Self>
Create a new keyring with the connection params
Trait Implementations§
Source§impl DynKeyRing for SqlCipherKeyring
impl DynKeyRing for SqlCipherKeyring
fn get_secret(&mut self, id: &str) -> Result<KeyRingSecret>
fn set_secret(&mut self, id: &str, secret: &[u8]) -> Result<()>
fn delete_secret(&mut self, id: &str) -> Result<()>
Source§impl NewKeyRing for SqlCipherKeyring
impl NewKeyRing for SqlCipherKeyring
impl Send for SqlCipherKeyring
impl Sync for SqlCipherKeyring
Auto Trait Implementations§
impl !Freeze for SqlCipherKeyring
impl !RefUnwindSafe for SqlCipherKeyring
impl Unpin for SqlCipherKeyring
impl UnsafeUnpin for SqlCipherKeyring
impl UnwindSafe for SqlCipherKeyring
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