pub trait SimpleFunctionFactoryBase:
SimpleFunctionFactory
+ Send
+ Sync
+ 'static {
type Spec: DeserializeOwned + Send + Sync;
type ResolvedArgs: Send + Sync;
// Required methods
fn name(&self) -> &str;
fn analyze<'a, 'life0, 'life1, 'async_trait>(
&'a self,
spec: &'a Self::Spec,
args_resolver: &'life0 mut OpArgsResolver<'a>,
context: &'life1 FlowInstanceContext,
) -> Pin<Box<dyn Future<Output = Result<SimpleFunctionAnalysisOutput<Self::ResolvedArgs>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn build_executor<'async_trait>(
self: Arc<Self>,
spec: Self::Spec,
resolved_args: Self::ResolvedArgs,
context: Arc<FlowInstanceContext>,
) -> Pin<Box<dyn Future<Output = Result<impl SimpleFunctionExecutor>> + Send + 'async_trait>>
where Self: 'async_trait;
// Provided method
fn register(self, registry: &mut ExecutorFactoryRegistry) -> Result<()>
where Self: Sized { ... }
}Required Associated Types§
type Spec: DeserializeOwned + Send + Sync
type ResolvedArgs: Send + Sync
Required Methods§
fn name(&self) -> &str
fn analyze<'a, 'life0, 'life1, 'async_trait>(
&'a self,
spec: &'a Self::Spec,
args_resolver: &'life0 mut OpArgsResolver<'a>,
context: &'life1 FlowInstanceContext,
) -> Pin<Box<dyn Future<Output = Result<SimpleFunctionAnalysisOutput<Self::ResolvedArgs>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn build_executor<'async_trait>(
self: Arc<Self>,
spec: Self::Spec,
resolved_args: Self::ResolvedArgs,
context: Arc<FlowInstanceContext>,
) -> Pin<Box<dyn Future<Output = Result<impl SimpleFunctionExecutor>> + Send + 'async_trait>>where
Self: 'async_trait,
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.