Skip to main content

ProcessRegistrySink

Trait ProcessRegistrySink 

Source
pub trait ProcessRegistrySink:
    Send
    + Sync
    + 'static {
    // Required methods
    fn register_process<'life0, 'async_trait>(
        &'life0 self,
        process: ProcessDescriptor,
        stopper: Option<Arc<dyn ProcessStopper>>,
    ) -> Pin<Box<dyn Future<Output = Result<ProcessDescriptor>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn append_process_output<'life0, 'async_trait>(
        &'life0 self,
        output: ProcessOutput,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn mark_process_exited<'life0, 'life1, 'async_trait>(
        &'life0 self,
        process_id: &'life1 str,
        exit_code: Option<i32>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn mark_process_failed<'life0, 'life1, 'async_trait>(
        &'life0 self,
        process_id: &'life1 str,
        error: String,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn mark_process_stopped<'life0, 'life1, 'async_trait>(
        &'life0 self,
        process_id: &'life1 str,
        reason: Option<String>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn register_process<'life0, 'async_trait>( &'life0 self, process: ProcessDescriptor, stopper: Option<Arc<dyn ProcessStopper>>, ) -> Pin<Box<dyn Future<Output = Result<ProcessDescriptor>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn append_process_output<'life0, 'async_trait>( &'life0 self, output: ProcessOutput, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn mark_process_exited<'life0, 'life1, 'async_trait>( &'life0 self, process_id: &'life1 str, exit_code: Option<i32>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn mark_process_failed<'life0, 'life1, 'async_trait>( &'life0 self, process_id: &'life1 str, error: String, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn mark_process_stopped<'life0, 'life1, 'async_trait>( &'life0 self, process_id: &'life1 str, reason: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§