Trait RequestWeight

Source
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§

Source

fn request_weight(&self) -> usize

Returns the weight of a request relative to the maximum threshold for flushing requests to the underlying service.

Implementations on Foreign Types§

Source§

impl RequestWeight for &'static str

Source§

impl RequestWeight for ()

Implementors§