pub fn new(max_items: usize, max_latency: std::time::Duration) -> Self {
        BatchLayer {
            max_items,
            max_latency,
            _p: PhantomData,
        }
    }
/// Creates a new `BatchLayer`.
///
/// The wrapper is responsible for telling the inner service when to flush a
/// batch of requests.  Two parameters control this policy:
///
/// * `max_items` gives the maximum number of items per batch.
/// * `max_latency` gives the maximum latency for a batch item.
Creates a new `BatchLayer`.
The wrapper is responsible for telling the inner service when to flush a
batch of requests.  Two parameters control this policy.

`max_items` gives the maximum number of items per batch.
`max_latency` gives the maximum latency for a batch item.
Creates a new ` BatchLayer ` . The wrapper is responsible for telling the inner service when to flush a batch of requests . Two parameters control this policy . ` max_items ` gives the maximum number of items per batch . ` max_latency ` gives the maximum latency for a batch item .
pub fn new(max_items: usize, max_latency: std::time::Duration) -> Self {
        BatchLayer {
            max_items,
            max_latency,
            _p: PhantomData,
        }
    }
pub fn new ( max_items : usize , max_latency : std :: time :: Duration ) -> Self { BatchLayer { max_items , max_latency , _p : PhantomData , } }
Creates a new `BatchLayer`.
Creates a new ` BatchLayer ` .
max_items
usize
max_latency
std::time::Duration