Trait messaging_thread_pool::RequestWithResponse

source ·
pub trait RequestWithResponse<P>: Debug + Into<ThreadRequestResponse<P>>{
    type Response;
}
Expand description

This trait allows for the pairing of requests and responses

Implementing this trait for the apis request/response pairs allows the messaging infrastructure to guarantee the correctness of the messages sent and received by leveraging the type system.

Required Associated Types§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl RequestWithResponse<Randoms> for PanicRequest

ties together the request with a response

source§

impl RequestWithResponse<Randoms> for MeanRequest

ties together the request with a response

source§

impl RequestWithResponse<Randoms> for RandomsAddRequest

source§

impl RequestWithResponse<Randoms> for SumRequest

ties together the request with a response

source§

impl<P> RequestWithResponse<RandomsBatch<P>> for RandomsBatchAddRequest<P>

source§

impl<P> RequestWithResponse<RandomsBatch<P>> for SumOfSumsRequest

ties together the request with a response

source§

impl<P> RequestWithResponse<P> for ThreadRequestResponse<P>
where P: PoolItem,

A ThreadRequestResponse is always a RequestWithResponse

source§

impl<P> RequestWithResponse<P> for RemovePoolItemRequest
where P: PoolItem,

source§

impl<P> RequestWithResponse<P> for ThreadAbortRequest
where P: PoolItem,

source§

impl<P> RequestWithResponse<P> for ThreadEchoRequest
where P: PoolItem,

source§

impl<P> RequestWithResponse<P> for ThreadShutdownRequest
where P: PoolItem,