Trait Frontend

pub trait Frontend:
    Send
    + Sync
    + 'static {
    // Required methods
    fn list_process<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListProcessRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListProcessResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn kill_process<'life0, 'async_trait>(
        &'life0 self,
        request: Request<KillProcessRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<KillProcessResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with FrontendServer.

Required Methods§

fn list_process<'life0, 'async_trait>( &'life0 self, request: Request<ListProcessRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListProcessResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

List all running processes on frontend.

fn kill_process<'life0, 'async_trait>( &'life0 self, request: Request<KillProcessRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<KillProcessResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Kill a running process on frontend.

Implementors§