pub struct CodingEffectExecutor<W, C, G, S> { /* private fields */ }Expand description
Effect executor that routes typed coding payloads to coding primitives.
Implementations§
Source§impl<W, C, G, S> CodingEffectExecutor<W, C, G, S>
impl<W, C, G, S> CodingEffectExecutor<W, C, G, S>
Sourcepub fn new(workspace: W, commands: C, git: G, searcher: S) -> Self
pub fn new(workspace: W, commands: C, git: G, searcher: S) -> Self
Constructs a coding effect executor.
Sourcepub fn with_config(self, config: CodingExecutorConfig) -> Self
pub fn with_config(self, config: CodingExecutorConfig) -> Self
Replaces executor configuration.
Trait Implementations§
Source§impl<W, C, G, S> EffectExecutor for CodingEffectExecutor<W, C, G, S>
impl<W, C, G, S> EffectExecutor for CodingEffectExecutor<W, C, G, S>
Source§fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request: &'life1 EffectRequest,
policy: &'life2 ExecutionPolicy,
context: &'life3 RunContext,
) -> Pin<Box<dyn Future<Output = Result<RawEffectOutput, ExecutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request: &'life1 EffectRequest,
policy: &'life2 ExecutionPolicy,
context: &'life3 RunContext,
) -> Pin<Box<dyn Future<Output = Result<RawEffectOutput, ExecutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Executes an effect under the provided policy.
Auto Trait Implementations§
impl<W, C, G, S> Freeze for CodingEffectExecutor<W, C, G, S>
impl<W, C, G, S> RefUnwindSafe for CodingEffectExecutor<W, C, G, S>
impl<W, C, G, S> Send for CodingEffectExecutor<W, C, G, S>
impl<W, C, G, S> Sync for CodingEffectExecutor<W, C, G, S>
impl<W, C, G, S> Unpin for CodingEffectExecutor<W, C, G, S>
impl<W, C, G, S> UnsafeUnpin for CodingEffectExecutor<W, C, G, S>
impl<W, C, G, S> UnwindSafe for CodingEffectExecutor<W, C, G, S>
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