pub trait AgentFactoryPort: Send + Sync {
// Required method
fn create<'life0, 'async_trait>(
&'life0 self,
descriptor: AgentDescriptor,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn AgentPort>, DomainError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
Sourcefn create<'life0, 'async_trait>(
&'life0 self,
descriptor: AgentDescriptor,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn AgentPort>, DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
descriptor: AgentDescriptor,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn AgentPort>, DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Produce a live agent matching descriptor.
Adapters that do not recognise descriptor.kind must return
DomainError::InvariantViolated with a reason naming the
unsupported kind, so operators see the mismatch loudly.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".