Struct askar_storage::backend::sqlite::SqliteStoreOptions
source · pub struct SqliteStoreOptions { /* private fields */ }Available on crate feature
sqlite only.Expand description
Configuration options for Sqlite stores
Implementations§
source§impl SqliteStoreOptions
impl SqliteStoreOptions
sourcepub fn new<'a>(options: impl IntoOptions<'a>) -> Result<Self, Error>
pub fn new<'a>(options: impl IntoOptions<'a>) -> Result<Self, Error>
Initialize SqliteStoreOptions from a generic set of options
sourcepub async fn provision(
self,
method: StoreKeyMethod,
pass_key: PassKey<'_>,
profile: Option<String>,
recreate: bool
) -> Result<SqliteBackend, Error>
pub async fn provision( self, method: StoreKeyMethod, pass_key: PassKey<'_>, profile: Option<String>, recreate: bool ) -> Result<SqliteBackend, Error>
Provision a new Sqlite store from these configuration options
sourcepub async fn open(
self,
method: Option<StoreKeyMethod>,
pass_key: PassKey<'_>,
profile: Option<String>
) -> Result<SqliteBackend, Error>
pub async fn open( self, method: Option<StoreKeyMethod>, pass_key: PassKey<'_>, profile: Option<String> ) -> Result<SqliteBackend, Error>
Open an existing Sqlite store from this set of configuration options
Trait Implementations§
source§impl Debug for SqliteStoreOptions
impl Debug for SqliteStoreOptions
source§impl Default for SqliteStoreOptions
impl Default for SqliteStoreOptions
source§impl<'a> ManageBackend<'a> for SqliteStoreOptions
impl<'a> ManageBackend<'a> for SqliteStoreOptions
§type Backend = SqliteBackend
type Backend = SqliteBackend
The type of backend being managed
source§fn open_backend(
self,
method: Option<StoreKeyMethod>,
pass_key: PassKey<'a>,
profile: Option<String>
) -> BoxFuture<'a, Result<SqliteBackend, Error>>
fn open_backend( self, method: Option<StoreKeyMethod>, pass_key: PassKey<'a>, profile: Option<String> ) -> BoxFuture<'a, Result<SqliteBackend, Error>>
Open an existing store
source§fn provision_backend(
self,
method: StoreKeyMethod,
pass_key: PassKey<'a>,
profile: Option<String>,
recreate: bool
) -> BoxFuture<'a, Result<SqliteBackend, Error>>
fn provision_backend( self, method: StoreKeyMethod, pass_key: PassKey<'a>, profile: Option<String>, recreate: bool ) -> BoxFuture<'a, Result<SqliteBackend, Error>>
Provision a new store
Auto Trait Implementations§
impl RefUnwindSafe for SqliteStoreOptions
impl Send for SqliteStoreOptions
impl Sync for SqliteStoreOptions
impl Unpin for SqliteStoreOptions
impl UnwindSafe for SqliteStoreOptions
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