pub trait RequestWithResponse<P>: Debug + Into<ThreadRequestResponse<P>>where
P: PoolItem,
Self::Response: Debug + From<ThreadRequestResponse<P>> + 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
impl RequestWithResponse<ChatRoom> for ChatRoomInit
type Response = AddResponse
Source§impl RequestWithResponse<ChatRoom> for PostRequest
impl RequestWithResponse<ChatRoom> for PostRequest
type Response = PostResponse
Source§impl RequestWithResponse<Randoms> for MeanRequest
impl RequestWithResponse<Randoms> for MeanRequest
type Response = MeanResponse
Source§impl RequestWithResponse<Randoms> for PanicRequest
impl RequestWithResponse<Randoms> for PanicRequest
type Response = PanicResponse
Source§impl RequestWithResponse<Randoms> for RandomsInit
impl RequestWithResponse<Randoms> for RandomsInit
type Response = AddResponse
Source§impl RequestWithResponse<Randoms> for SumRequest
impl RequestWithResponse<Randoms> for SumRequest
type Response = SumResponse
Source§impl RequestWithResponse<UserSession> for GetLogRequest
impl RequestWithResponse<UserSession> for GetLogRequest
type Response = GetLogResponse
Source§impl RequestWithResponse<UserSession> for LogActionRequest
impl RequestWithResponse<UserSession> for LogActionRequest
type Response = LogActionResponse
Source§impl RequestWithResponse<UserSession> for UserSessionInit
impl RequestWithResponse<UserSession> for UserSessionInit
type Response = AddResponse
Source§impl<P> RequestWithResponse<P> for ThreadRequestResponse<P>where
P: PoolItem,
A ThreadRequestResponse is always a RequestWithResponse
impl<P> RequestWithResponse<P> for ThreadRequestResponse<P>where
P: PoolItem,
A ThreadRequestResponse is always a RequestWithResponse