pub struct TroupeBuilder { /* private fields */ }Expand description
Settings for a Troupe. With no store chosen the five stores live in
memory and nothing survives a restart. sqlite and sqlite_with put
all five in one file. clock sets the job queue’s time source.
Implementations§
Source§impl TroupeBuilder
impl TroupeBuilder
Sourcepub fn sqlite(self, path: impl AsRef<Path>) -> Self
pub fn sqlite(self, path: impl AsRef<Path>) -> Self
Keeps every store in one SQLite file at path with every store
setting at its default. Input: the file path. Output: the builder.
Sourcepub fn sqlite_with(self, store: SqliteStoreBuilder) -> Self
pub fn sqlite_with(self, store: SqliteStoreBuilder) -> Self
Keeps every store in one SQLite file opened from store, so any
store setting (durability, caps, busy timeout, key) applies.
Input: the store builder. Output: the builder.
Auto Trait Implementations§
impl !RefUnwindSafe for TroupeBuilder
impl !UnwindSafe for TroupeBuilder
impl Forget for TroupeBuilder
impl Freeze for TroupeBuilderwhere
*const SqliteStoreBuilder is !null: Freeze,
PhantomData<SqliteStoreBuilder>: Freeze,
*const ArcInner<dyn Clock> is !null: Freeze,
PhantomData<ArcInner<dyn Clock>>: Freeze,
impl Move for TroupeBuilder
impl Send for TroupeBuilder
impl Sync for TroupeBuilder
impl Unpin for TroupeBuilder
impl UnsafeUnpin for TroupeBuilderwhere
*const SqliteStoreBuilder is !null: UnsafeUnpin,
PhantomData<SqliteStoreBuilder>: UnsafeUnpin,
*const ArcInner<dyn Clock> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Clock>>: UnsafeUnpin,
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