Module samples

Module samples 

Source

Structs§

ChatRoom
A ChatRoom is a stateful entity that manages a list of messages. It is managed by the thread pool, so we don’t need internal mutexes.
ChatRoomInit
GetHistoryRequest
GetHistoryResponse
MeanRequest
MeanResponse
PanicRequest
PanicResponse
PostRequest
PostResponse
Randoms
This represents a simple collection of random numbers which is hosted inside the thread pool
RandomsAddRequest
RandomsBatch
An example of an element that contains a child thread pool
RandomsBatchAddRequest
This is the request that is sent to create a new RandomsBatch It contains a field to configure the size of the contained child thread pool. As the this thread pool is shared it will only ever be used by the first request to create a RandomsBatch
RandomsInit
RandomsThreadPool
define a struct to identify concrete type of thread pool
SumOfSumsRequest
SumOfSumsResponse
SumRequest
SumResponse

Enums§

ChatRoomApi
RandomsApi
RandomsBatchApi

Traits§

InnerThreadPool
Define a trait to reduce type complexity for inner thread pool

Type Aliases§

ChatRoom_GetHistoryRequest_RequestResponse
ChatRoom_PostRequest_RequestResponse
RandomsBatch_SumOfSumsRequest_RequestResponse
Randoms_MeanRequest_RequestResponse
Randoms_PanicRequest_RequestResponse
Randoms_SumRequest_RequestResponse