[−][src]Struct bastion_executor::load_balancer::LoadBalancer
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
Auto Trait Implementations
impl RefUnwindSafe for LoadBalancer
impl Send for LoadBalancer
impl Sync for LoadBalancer
impl Unpin for LoadBalancer
impl UnwindSafe for LoadBalancer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> State for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,