Trait messaging_thread_pool::IdTargeted
source · 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§
Implementations on Foreign Types§
Implementors§
impl IdTargeted for RandomsApi
impl IdTargeted for PanicRequest
all requests must be able to provide the id of the pool item that they are targeting
impl IdTargeted for MeanRequest
all requests must be able to provide the id of the pool item that they are targeting