pub struct EffectExecutor { /* private fields */ }Expand description
Capability-gated write-ahead external-effect coordinator.
Implementations§
Source§impl EffectExecutor
impl EffectExecutor
Sourcepub fn new(store: Arc<dyn EffectStore>) -> Self
pub fn new(store: Arc<dyn EffectStore>) -> Self
Creates an executor using the given durable-state boundary.
Sourcepub const fn with_event_payload_policy(
self,
policy: EffectEventPayloadPolicy,
) -> Self
pub const fn with_event_payload_policy( self, policy: EffectEventPayloadPolicy, ) -> Self
Sets explicit Journal output-capture behavior.
Sourcepub async fn execute(
&self,
request: EffectRequest,
run: &RunContext,
handler: &dyn EffectHandler,
recovery: EffectRecoveryPolicy,
) -> Result<EffectOutcome, EffectExecutorError>
pub async fn execute( &self, request: EffectRequest, run: &RunContext, handler: &dyn EffectHandler, recovery: EffectRecoveryPolicy, ) -> Result<EffectOutcome, EffectExecutorError>
Executes or recovers one logical effect.
§Errors
Returns EffectExecutorError for authority, persistence, lifecycle,
ambiguity, handler, or observability failures.
Trait Implementations§
Source§impl Clone for EffectExecutor
impl Clone for EffectExecutor
Source§fn clone(&self) -> EffectExecutor
fn clone(&self) -> EffectExecutor
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for EffectExecutor
impl !UnwindSafe for EffectExecutor
impl Freeze for EffectExecutor
impl Send for EffectExecutor
impl Sync for EffectExecutor
impl Unpin for EffectExecutor
impl UnsafeUnpin for EffectExecutor
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