Trait aries_askar::ManageBackend[][src]

pub trait ManageBackend<'a> {
    type Store;
    fn open_backend(
        self,
        method: Option<WrapKeyMethod>,
        pass_key: PassKey<'a>,
        profile: Option<&'a str>
    ) -> BoxFuture<'a, Result<Self::Store, Error>>;
fn provision_backend(
        self,
        method: WrapKeyMethod,
        pass_key: PassKey<'a>,
        profile: Option<&'a str>,
        recreate: bool
    ) -> BoxFuture<'a, Result<Self::Store, Error>>;
fn remove_backend(self) -> BoxFuture<'a, Result<bool, Error>>; }

Create, open, or remove a generic backend implementation

Associated Types

type Store[src]

The type of store being managed

Loading content...

Required methods

fn open_backend(
    self,
    method: Option<WrapKeyMethod>,
    pass_key: PassKey<'a>,
    profile: Option<&'a str>
) -> BoxFuture<'a, Result<Self::Store, Error>>
[src]

Open an existing store

fn provision_backend(
    self,
    method: WrapKeyMethod,
    pass_key: PassKey<'a>,
    profile: Option<&'a str>,
    recreate: bool
) -> BoxFuture<'a, Result<Self::Store, Error>>
[src]

Provision a new store

fn remove_backend(self) -> BoxFuture<'a, Result<bool, Error>>[src]

Remove an existing store

Loading content...

Implementations on Foreign Types

impl<'a> ManageBackend<'a> for &'a str[src]

This is supported on crate feature any only.

type Store = AnyStore

Loading content...

Implementors

impl<'a> ManageBackend<'a> for PostgresStoreOptions[src]

This is supported on crate feature postgres only.

type Store = Store<PostgresStore>

impl<'a> ManageBackend<'a> for SqliteStoreOptions[src]

This is supported on crate feature sqlite only.

type Store = Store<SqliteStore>

Loading content...