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
Source§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 Freeze for SqliteStoreOptions
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more