Skip to main content

Process

Trait Process 

Source
pub trait Process: Send + Sync {
    // Required methods
    fn identifier(&self) -> &str;
    fn title(&self) -> &str;
    fn inputs(&self) -> Vec<InputDescription>;
    fn outputs(&self) -> Vec<OutputDescription>;
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        inputs: ProcessInputs,
    ) -> Pin<Box<dyn Future<Output = ServiceResult<ProcessOutputs>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn abstract_text(&self) -> Option<&str> { ... }
}
Expand description

Process trait

Required Methods§

Source

fn identifier(&self) -> &str

Get process identifier

Source

fn title(&self) -> &str

Get process title

Source

fn inputs(&self) -> Vec<InputDescription>

Get input descriptions

Source

fn outputs(&self) -> Vec<OutputDescription>

Get output descriptions

Source

fn execute<'life0, 'async_trait>( &'life0 self, inputs: ProcessInputs, ) -> Pin<Box<dyn Future<Output = ServiceResult<ProcessOutputs>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Execute process

Provided Methods§

Source

fn abstract_text(&self) -> Option<&str>

Get process abstract

Implementors§