pub struct StrategyLimits {
pub load: Option<f64>,
pub network: Option<f64>,
pub latency: Option<Duration>,
}Expand description
Optional upper bounds for strategy optimization.
The bound matching the objective being optimized must be None.
Fields§
§load: Option<f64>Maximum load (see Strategy::load).
network: Option<f64>Maximum network load (see Strategy::network_load).
latency: Option<Duration>Maximum latency (see Strategy::latency).
Trait Implementations§
Source§impl Clone for StrategyLimits
impl Clone for StrategyLimits
impl Copy for StrategyLimits
Source§impl Debug for StrategyLimits
impl Debug for StrategyLimits
Auto Trait Implementations§
impl Freeze for StrategyLimits
impl RefUnwindSafe for StrategyLimits
impl Send for StrategyLimits
impl Sync for StrategyLimits
impl Unpin for StrategyLimits
impl UnsafeUnpin for StrategyLimits
impl UnwindSafe for StrategyLimits
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