usefutures_cpupool::CpuPool;/// A Shared component within Pemmican, accessible to plugins
pubstructShared<S>{pubpool: CpuPool,
#[allow(dead_code)]// this is provided for handlers; this library does not use it
pubstate: S,
}impl<S>Shared<S>{pubfnnew(num_threads:usize, state: S)->Shared<S>{
Shared {
pool:CpuPool::new(num_threads),
state: state,}}}