Struct lair_keystore::store_sqlite::SqlPool
source · [−]pub struct SqlPool(_);
Expand description
SqlPool is a sqlite/sqlcipher connection pool LairStore.
Implementations
sourceimpl SqlPool
impl SqlPool
sourcepub fn new(
path: PathBuf,
db_key: BufReadSized<32>
) -> impl Future<Output = LairResult<LairStore>> + 'static + Send
pub fn new(
path: PathBuf,
db_key: BufReadSized<32>
) -> impl Future<Output = LairResult<LairStore>> + 'static + Send
Construct a new SqlPool instance.
Trait Implementations
sourceimpl AsLairStore for SqlPool
impl AsLairStore for SqlPool
sourcefn 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. Read more
sourcefn 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.
sourcefn 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. Read more
sourcefn 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.
sourcefn 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.
sourcefn 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 !RefUnwindSafe for SqlPool
impl Send for SqlPool
impl Sync for SqlPool
impl Unpin for SqlPool
impl !UnwindSafe for SqlPool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more