pub struct KeystoreDatabaseConnection { /* private fields */ }Implementations§
Source§impl SqlCipherConnection
 
impl SqlCipherConnection
pub async fn migrate_db_key_type_to_bytes( path: &str, old_key: &str, new_key: &DatabaseKey, ) -> CryptoKeystoreResult<()>
pub async fn conn(&self) -> MutexGuard<'_, Connection>
pub async fn wipe(self) -> CryptoKeystoreResult<()>
Trait Implementations§
Source§impl<'a> DatabaseConnection<'a> for SqlCipherConnection
 
impl<'a> DatabaseConnection<'a> for SqlCipherConnection
type Connection = MutexGuard<'a, Connection>
fn open<'life0, 'life1, 'async_trait>(
    name: &'life0 str,
    key: &'life1 DatabaseKey,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Self>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
fn open_in_memory<'life0, 'life1, 'async_trait>(
    name: &'life0 str,
    key: &'life1 DatabaseKey,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Self>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
fn close<'async_trait>(
    self,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
Source§fn wipe<'async_trait>(
    self,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
 
fn wipe<'async_trait>(
    self,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
Default implementation of wipe
fn check_buffer_size(size: usize) -> CryptoKeystoreResult<()>
Source§impl Debug for SqlCipherConnection
 
impl Debug for SqlCipherConnection
impl DatabaseConnectionRequirements for SqlCipherConnection
impl Send for SqlCipherConnection
impl Sync for SqlCipherConnection
Auto Trait Implementations§
impl !Freeze for SqlCipherConnection
impl !RefUnwindSafe for SqlCipherConnection
impl Unpin for SqlCipherConnection
impl !UnwindSafe for SqlCipherConnection
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
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more