[][src]Struct bastion_executor::load_balancer::LoadBalancer

pub struct LoadBalancer {
    pub num_cores: usize,
    pub cores: Vec<CoreId>,
    // some fields omitted
}

Load-balancer struct which allows us to update the mean load

Fields

num_cores: usize

The number of cores available for this program

cores: Vec<CoreId>

The core Ids available for this program This doesn't take affinity into account

Implementations

impl LoadBalancer[src]

pub fn new(cores: Vec<CoreId>) -> Self[src]

Creates a new LoadBalancer. if you're looking for num_cores and cores Have a look at load_balancer::core_count() and load_balancer::get_cores() respectively.

impl LoadBalancer[src]

pub fn update_load_mean(&self)[src]

Iterates the statistics to get the mean load across the cores

Trait Implementations

impl Debug for LoadBalancer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> State for T where
    T: Send + Sync + 'static, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.