pub struct RandomsBatchAddRequest {
pub id: usize,
pub number_of_contained_randoms: usize,
pub id_provider: SizedIdProvider,
pub randoms_thread_pool: Arc<ThreadPool<Randoms>>,
}Expand description
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
RandomsBatches will also need to share a common “source of ids” for the Randoms that it will create
Fields§
§id: usize§number_of_contained_randoms: usize§id_provider: SizedIdProvider§randoms_thread_pool: Arc<ThreadPool<Randoms>>Implementations§
source§impl RandomsBatchAddRequest
impl RandomsBatchAddRequest
pub fn id_provider(&self) -> &SizedIdProvider
pub fn id(&self) -> usize
Trait Implementations§
source§impl Clone for RandomsBatchAddRequest
impl Clone for RandomsBatchAddRequest
source§fn clone(&self) -> RandomsBatchAddRequest
fn clone(&self) -> RandomsBatchAddRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RandomsBatchAddRequest
impl Debug for RandomsBatchAddRequest
source§impl From<RandomsBatchAddRequest> for ThreadRequestResponse<RandomsBatch>
impl From<RandomsBatchAddRequest> for ThreadRequestResponse<RandomsBatch>
source§fn from(request: RandomsBatchAddRequest) -> Self
fn from(request: RandomsBatchAddRequest) -> Self
Converts to this type from the input type.
source§impl From<ThreadRequestResponse<RandomsBatch>> for RandomsBatchAddRequest
impl From<ThreadRequestResponse<RandomsBatch>> for RandomsBatchAddRequest
source§fn from(response: ThreadRequestResponse<RandomsBatch>) -> Self
fn from(response: ThreadRequestResponse<RandomsBatch>) -> Self
Converts to this type from the input type.