pub struct SqliteRuntimeEffectController { /* private fields */ }Expand description
Scoped SQLite-backed runtime effect controller.
Implementations§
Source§impl SqliteRuntimeEffectController
impl SqliteRuntimeEffectController
pub async fn open(path: &Path, scope: EffectScope) -> Result<Self>
pub async fn open_with_options( path: &Path, scope: EffectScope, options: SqliteEffectReplayOptions, ) -> Result<Self>
pub async fn memory(scope: EffectScope) -> Result<Self>
pub async fn memory_with_options( scope: EffectScope, options: SqliteEffectReplayOptions, ) -> Result<Self>
Sourcepub fn start_replay(&self)
pub fn start_replay(&self)
Force strict replay mode: missing effect history fails instead of executing locally. Normal operation still replays any completed row.
Trait Implementations§
Source§impl Clone for SqliteRuntimeEffectController
impl Clone for SqliteRuntimeEffectController
Source§fn clone(&self) -> SqliteRuntimeEffectController
fn clone(&self) -> SqliteRuntimeEffectController
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl RuntimeEffectController for SqliteRuntimeEffectController
impl RuntimeEffectController for SqliteRuntimeEffectController
Source§fn durability_tier(&self) -> DurabilityTier
fn durability_tier(&self) -> DurabilityTier
Durability tier this controller provides; defaults to
[
DurabilityTier::Inline].fn requires_durable_attachment_store(&self) -> bool
fn execute_effect<'life0, 'life1, 'async_trait>(
&'life0 self,
envelope: RuntimeEffectEnvelope,
local_executor: RuntimeEffectLocalExecutor<'life1>,
) -> Pin<Box<dyn Future<Output = Result<RuntimeEffectOutcome, RuntimeEffectControllerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for SqliteRuntimeEffectController
impl RefUnwindSafe for SqliteRuntimeEffectController
impl Send for SqliteRuntimeEffectController
impl Sync for SqliteRuntimeEffectController
impl Unpin for SqliteRuntimeEffectController
impl UnsafeUnpin for SqliteRuntimeEffectController
impl UnwindSafe for SqliteRuntimeEffectController
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