Trait narwhal_types::PrimaryToWorker
source · [−]pub trait PrimaryToWorker: Send + Sync + 'static {
fn send_message<'life0, 'async_trait>(
&'life0 self,
request: Request<PrimaryWorkerMessage>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn synchronize<'life0, 'async_trait>(
&'life0 self,
request: Request<WorkerSynchronizeMessage>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn request_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<RequestBatchRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<RequestBatchResponse>, 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 PrimaryToWorkerServer.
Required Methods
sourcefn send_message<'life0, 'async_trait>(
fn send_message<'life0, 'async_trait>(
&'life0 self,
request: Request<PrimaryWorkerMessage>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
sourcefn synchronize<'life0, 'async_trait>(
fn synchronize<'life0, 'async_trait>(
&'life0 self,
request: Request<WorkerSynchronizeMessage>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
sourcefn request_batch<'life0, 'async_trait>(