pub trait PoolUnit: Send + 'static {
type Output: Send + 'static;
// Required method
fn execute(self) -> Self::Output;
}Expand description
One unit of work executed by the storage worker pool.
Units own everything they touch: the pool outlives any single call, so a unit cannot borrow caller state. Return values are handed back to the dispatcher in unit order.