pub struct LoadBalancingParams {
pub steal_threshold: usize,
pub max_steal_attempts: usize,
pub backoff_base: Duration,
pub max_backoff: Duration,
pub chunksize: usize,
pub priority_scheduling: bool,
}
Expand description
Load balancing parameters for adaptive optimization
Fields§
§steal_threshold: usize
Minimum work items before attempting to steal
max_steal_attempts: usize
Maximum steal attempts per worker
backoff_base: Duration
Exponential backoff base for failed steals
max_backoff: Duration
Maximum backoff time
chunksize: usize
Work chunk size for splitting large tasks
priority_scheduling: bool
Enable work item priority scheduling
Trait Implementations§
Source§impl Clone for LoadBalancingParams
impl Clone for LoadBalancingParams
Source§fn clone(&self) -> LoadBalancingParams
fn clone(&self) -> LoadBalancingParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LoadBalancingParams
impl Debug for LoadBalancingParams
Auto Trait Implementations§
impl Freeze for LoadBalancingParams
impl RefUnwindSafe for LoadBalancingParams
impl Send for LoadBalancingParams
impl Sync for LoadBalancingParams
impl Unpin for LoadBalancingParams
impl UnwindSafe for LoadBalancingParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more