RequestWithResponse

Trait 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 API’s 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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl RequestWithResponse<ChatRoom> for ChatRoomInit

Source§

impl RequestWithResponse<ChatRoom> for GetHistoryRequest

Source§

impl RequestWithResponse<ChatRoom> for PostRequest

Source§

impl RequestWithResponse<Randoms> for MeanRequest

Source§

impl RequestWithResponse<Randoms> for PanicRequest

Source§

impl RequestWithResponse<Randoms> for RandomsInit

Source§

impl RequestWithResponse<Randoms> for SumRequest

Source§

impl RequestWithResponse<UserSession> for GetLogRequest

Source§

impl RequestWithResponse<UserSession> for LogActionRequest

Source§

impl RequestWithResponse<UserSession> for UserSessionInit

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,

Source§

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

Source§

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