Struct aries_askar::Store
source · pub struct Store<B: Backend>(_);Expand description
An instance of an opened store
Implementations§
source§impl<B: Backend> Store<B>
impl<B: Backend> Store<B>
sourcepub fn get_profile_name(&self) -> &str
pub fn get_profile_name(&self) -> &str
Get the default profile name used when starting a scan or a session
sourcepub async fn rekey(
&mut self,
method: StoreKeyMethod,
pass_key: PassKey<'_>
) -> Result<(), Error>
pub async fn rekey( &mut self, method: StoreKeyMethod, pass_key: PassKey<'_> ) -> Result<(), Error>
Replace the wrapping key on a store
sourcepub async fn create_profile(
&self,
name: Option<String>
) -> Result<String, Error>
pub async fn create_profile( &self, name: Option<String> ) -> Result<String, Error>
Create a new profile with the given profile name
sourcepub async fn remove_profile(&self, name: String) -> Result<bool, Error>
pub async fn remove_profile(&self, name: String) -> Result<bool, Error>
Remove an existing profile with the given profile name
sourcepub async fn scan(
&self,
profile: Option<String>,
category: String,
tag_filter: Option<TagFilter>,
offset: Option<i64>,
limit: Option<i64>
) -> Result<Scan<'static, Entry>, Error>
pub async fn scan( &self, profile: Option<String>, category: String, tag_filter: Option<TagFilter>, offset: Option<i64>, limit: Option<i64> ) -> Result<Scan<'static, Entry>, Error>
Create a new scan instance against the store
The result will keep an open connection to the backend until it is consumed
sourcepub async fn session(
&self,
profile: Option<String>
) -> Result<Session<B::Session>, Error>
pub async fn session( &self, profile: Option<String> ) -> Result<Session<B::Session>, Error>
Create a new session against the store
Trait Implementations§
Auto Trait Implementations§
impl<B> RefUnwindSafe for Store<B>where B: RefUnwindSafe,
impl<B> Send for Store<B>
impl<B> Sync for Store<B>
impl<B> Unpin for Store<B>where B: Unpin,
impl<B> UnwindSafe for Store<B>where B: 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