pub trait WorkerToPrimary: Send + Sync + 'static {
    fn send_message<'life0, 'async_trait>(
        &'life0 self,
        request: Request<WorkerPrimaryMessage>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn worker_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<()>
    ) -> Pin<Box<dyn Future<Output = Result<Response<WorkerInfoResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Generated trait containing RPC methods that should be implemented for use with WorkerToPrimaryServer.

Required Methods

Implementors