Trait ProcessService

Source
pub trait ProcessService:
    Send
    + Sync
    + Debug {
    // Required method
    fn shutdown_tree<'life0, 'async_trait>(
        &'life0 self,
        request: ShutdownTreeRequest,
    ) -> Pin<Box<dyn Future<Output = Result<ShutdownTreeResponse, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for process-level service operations.

Any process that participates in the IPC system should implement this trait to handle graceful shutdown requests.

Required Methods§

Source

fn shutdown_tree<'life0, 'async_trait>( &'life0 self, request: ShutdownTreeRequest, ) -> Pin<Box<dyn Future<Output = Result<ShutdownTreeResponse, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Request graceful shutdown of this process and its children.

Implementors§