pub trait IdTargeted: Debug {
    // Required method
    fn id(&self) -> usize;
}
Expand description

This trait is implemented by requests that are targeted at a pool item with an id and by the corresponding responses coming back from said pool item.
This trait is used internally by the thread pool to route requests to the appropriate thread in the thread pool.

Required Methods§

source

fn id(&self) -> usize

Implementations on Foreign Types§

source§

impl IdTargeted for usize

source§

fn id(&self) -> usize

Implementors§

source§

impl IdTargeted for RandomsApi

source§

impl IdTargeted for PanicRequest

all requests must be able to provide the id of the pool item that they are targeting

source§

impl IdTargeted for MeanRequest

all requests must be able to provide the id of the pool item that they are targeting

source§

impl IdTargeted for Randoms

source§

impl IdTargeted for RandomsAddRequest

source§

impl IdTargeted for SumOfSumsRequest

source§

impl IdTargeted for SumRequest

source§

impl IdTargeted for RemovePoolItemRequest

source§

impl IdTargeted for ThreadAbortRequest

source§

impl IdTargeted for ThreadEchoRequest

source§

impl IdTargeted for ThreadShutdownRequest

source§

impl<P> IdTargeted for RandomsBatchApi<P>

source§

impl<P> IdTargeted for RandomsBatchAddRequest<P>

source§

impl<P, T> IdTargeted for RequestResponse<P, T>