pub trait RequestWeight {
// Provided method
fn request_weight(&self) -> usize { ... }
}
Expand description
A trait for reading the weight of a request to BatchControl
services.
Provided Methods§
Sourcefn request_weight(&self) -> usize
fn request_weight(&self) -> usize
Returns the weight of a request relative to the maximum threshold for flushing requests to the underlying service.