pub struct InlineRuntimeEffectController;Expand description
Default in-process effect controller.
The inline controller executes local runners in process, provides in-memory await-event resolution, and exposes durable-tool-effect semantics for local runs. It does not make in-flight effects crash durable; workflow adapters provide that by recording outcomes in their own history.
Trait Implementations§
Source§impl Clone for InlineRuntimeEffectController
impl Clone for InlineRuntimeEffectController
Source§fn clone(&self) -> InlineRuntimeEffectController
fn clone(&self) -> InlineRuntimeEffectController
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 Default for InlineRuntimeEffectController
impl Default for InlineRuntimeEffectController
Source§fn default() -> InlineRuntimeEffectController
fn default() -> InlineRuntimeEffectController
Returns the “default value” for a type. Read more
Source§impl RuntimeEffectController for InlineRuntimeEffectController
impl RuntimeEffectController for InlineRuntimeEffectController
fn supports_durable_effects(&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,
fn await_event_key<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 ExecutionScope,
wait: AwaitEventWaitIdentity,
) -> Pin<Box<dyn Future<Output = Result<AwaitEventKey, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_await_event<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 AwaitEventKey,
resolution: Resolution,
) -> Pin<Box<dyn Future<Output = Result<ResolveOutcome, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn await_await_event<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 AwaitEventKey,
cancel: CancellationToken,
deadline: Option<Instant>,
) -> Pin<Box<dyn Future<Output = Result<Resolution, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn revoke_await_events_for_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
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
Auto Trait Implementations§
impl Freeze for InlineRuntimeEffectController
impl RefUnwindSafe for InlineRuntimeEffectController
impl Send for InlineRuntimeEffectController
impl Sync for InlineRuntimeEffectController
impl Unpin for InlineRuntimeEffectController
impl UnsafeUnpin for InlineRuntimeEffectController
impl UnwindSafe for InlineRuntimeEffectController
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