pub struct CipheredConnectionStrategy<I>where
I: ConnectionStrategy,{ /* private fields */ }Expand description
Encrypted database connection with SQLCipher.
Implementations§
source§impl<CS> CipheredConnectionStrategy<CS>where
CS: ConnectionStrategy,
impl<CS> CipheredConnectionStrategy<CS>where CS: ConnectionStrategy,
sourcepub fn new(
strategy: CS,
cipher_config: SqlCipherConfig
) -> CipheredConnectionStrategy<CS>
pub fn new( strategy: CS, cipher_config: SqlCipherConfig ) -> CipheredConnectionStrategy<CS>
Create a new SQLCipher connection that inherits another connection strategy.
Trait Implementations§
source§impl<I> ConnectionStrategy for CipheredConnectionStrategy<I>where
I: ConnectionStrategy,
impl<I> ConnectionStrategy for CipheredConnectionStrategy<I>where I: ConnectionStrategy,
source§fn make_connection(&self) -> Result<Connection, SqLiteDataStorageError>
fn make_connection(&self) -> Result<Connection, SqLiteDataStorageError>
Connect to the SQLite database.
Auto Trait Implementations§
impl<I> RefUnwindSafe for CipheredConnectionStrategy<I>where I: RefUnwindSafe,
impl<I> Send for CipheredConnectionStrategy<I>where I: Send,
impl<I> Sync for CipheredConnectionStrategy<I>where I: Sync,
impl<I> Unpin for CipheredConnectionStrategy<I>where I: Unpin,
impl<I> UnwindSafe for CipheredConnectionStrategy<I>where I: UnwindSafe,
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