[][src]Struct aries_askar::Store

pub struct Store<B: Backend>(_);

An instance of an opened store

Implementations

impl<B: Backend> Store<B>[src]

pub fn get_profile_name(&self) -> &str[src]

Get the default profile name used when starting a scan or a session

pub async fn rekey(
    &mut self,
    method: WrapKeyMethod,
    pass_key: PassKey<'_>
) -> Result<(), Error>
[src]

Replace the wrapping key on a store

pub async fn create_profile(
    &self,
    name: Option<String>
) -> Result<String, Error>
[src]

Create a new profile with the given profile name

pub async fn remove_profile(&self, name: String) -> Result<bool, Error>[src]

Remove an existing profile with the given profile name

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>
[src]

Create a new scan instance against the store

The result will keep an open connection to the backend until it is consumed

pub async fn session(
    &self,
    profile: Option<String>
) -> Result<Session<B::Session>, Error>
[src]

Create a new session against the store

pub async fn transaction(
    &self,
    profile: Option<String>
) -> Result<Session<B::Session>, Error>
[src]

Create a new transaction session against the store

pub async fn close(self) -> Result<(), Error>[src]

Close the store instance, waiting for any shutdown procedures to complete.

Trait Implementations

impl<B: Debug + Backend> Debug for Store<B>[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for Store<B> where
    B: RefUnwindSafe
[src]

impl<B> Send for Store<B>[src]

impl<B> Sync for Store<B>[src]

impl<B> Unpin for Store<B> where
    B: Unpin
[src]

impl<B> UnwindSafe for Store<B> where
    B: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,