reasonerconn

Trait ReasonerConnector

Source
pub trait ReasonerConnector<L: ReasonerConnectorAuditLogger>: ConnectorWithContext {
    // Required methods
    fn execute_task<'life0, 'async_trait>(
        &'life0 self,
        logger: SessionedConnectorAuditLogger<L>,
        policy: Policy,
        state: State,
        workflow: Workflow,
        task: String,
    ) -> Pin<Box<dyn Future<Output = Result<ReasonerResponse, ReasonerConnError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn access_data_request<'life0, 'async_trait>(
        &'life0 self,
        logger: SessionedConnectorAuditLogger<L>,
        policy: Policy,
        state: State,
        workflow: Workflow,
        data: String,
        task: Option<String>,
    ) -> Pin<Box<dyn Future<Output = Result<ReasonerResponse, ReasonerConnError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn workflow_validation_request<'life0, 'async_trait>(
        &'life0 self,
        logger: SessionedConnectorAuditLogger<L>,
        policy: Policy,
        state: State,
        workflow: Workflow,
    ) -> Pin<Box<dyn Future<Output = Result<ReasonerResponse, ReasonerConnError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn execute_task<'life0, 'async_trait>( &'life0 self, logger: SessionedConnectorAuditLogger<L>, policy: Policy, state: State, workflow: Workflow, task: String, ) -> Pin<Box<dyn Future<Output = Result<ReasonerResponse, ReasonerConnError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn access_data_request<'life0, 'async_trait>( &'life0 self, logger: SessionedConnectorAuditLogger<L>, policy: Policy, state: State, workflow: Workflow, data: String, task: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<ReasonerResponse, ReasonerConnError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn workflow_validation_request<'life0, 'async_trait>( &'life0 self, logger: SessionedConnectorAuditLogger<L>, policy: Policy, state: State, workflow: Workflow, ) -> Pin<Box<dyn Future<Output = Result<ReasonerResponse, ReasonerConnError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Implementors§