Struct lair_keystore::store_sqlite::SqlPool
source · pub struct SqlPool(/* private fields */);
Expand description
SqlPool is a sqlite/sqlcipher connection pool LairStore.
Implementations§
Trait Implementations§
source§impl AsLairStore for SqlPool
impl AsLairStore for SqlPool
source§fn get_bidi_ctx_key(&self) -> BufReadSized<32>
fn get_bidi_ctx_key(&self) -> BufReadSized<32>
Return the context key for both encryption and decryption
of secret data within the store that is NOT deep_locked.
source§fn list_entries(&self) -> BoxFuture<'static, LairResult<Vec<LairEntryInfo>>>
fn list_entries(&self) -> BoxFuture<'static, LairResult<Vec<LairEntryInfo>>>
List the entries tracked by the lair store.
source§fn write_entry(&self, entry: LairEntry) -> BoxFuture<'static, LairResult<()>>
fn write_entry(&self, entry: LairEntry) -> BoxFuture<'static, LairResult<()>>
Write a new entry to the lair store.
Should error if the tag already exists.
source§fn get_entry_by_tag(
&self,
tag: Arc<str>,
) -> BoxFuture<'static, LairResult<LairEntry>>
fn get_entry_by_tag( &self, tag: Arc<str>, ) -> BoxFuture<'static, LairResult<LairEntry>>
Get an entry from the lair store by tag.
source§fn get_entry_by_ed25519_pub_key(
&self,
ed25519_pub_key: Ed25519PubKey,
) -> BoxFuture<'static, LairResult<LairEntry>>
fn get_entry_by_ed25519_pub_key( &self, ed25519_pub_key: Ed25519PubKey, ) -> BoxFuture<'static, LairResult<LairEntry>>
Get an entry from the lair store by ed25519 pub key.
source§fn get_entry_by_x25519_pub_key(
&self,
x25519_pub_key: X25519PubKey,
) -> BoxFuture<'static, LairResult<LairEntry>>
fn get_entry_by_x25519_pub_key( &self, x25519_pub_key: X25519PubKey, ) -> BoxFuture<'static, LairResult<LairEntry>>
Get an entry from the lair store by x25519 pub key.
Auto Trait Implementations§
impl Freeze for SqlPool
impl !RefUnwindSafe for SqlPool
impl Send for SqlPool
impl Sync for SqlPool
impl Unpin for SqlPool
impl !UnwindSafe for SqlPool
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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