AggregateRequestBound

Trait AggregateRequestBound 

Source
pub trait AggregateRequestBound: RequestBound {
    // Required method
    fn service_needed_by_n_jobs_per_component(
        &self,
        delta: Duration,
        max_jobs: usize,
    ) -> Service;
}
Expand description

A refined interface for processor demand that represents the total demand of a collection of individual sources of demand.

Required Methods§

Source

fn service_needed_by_n_jobs_per_component( &self, delta: Duration, max_jobs: usize, ) -> Service

Bound the total amount of service needed in an interval of length delta, subject to the constraint that no individual source of demand contributes more than max_jobs worth of demand.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + AggregateRequestBound + ?Sized> AggregateRequestBound for &'a T

Source§

impl<T: AggregateRequestBound + ?Sized> AggregateRequestBound for Box<T>
where Box<T>: RequestBound,

Source§

impl<T: AggregateRequestBound + ?Sized> AggregateRequestBound for Rc<T>
where Rc<T>: RequestBound,

Implementors§