pub struct ThresholdPolicy {
pub moving_duration: Duration,
pub moving_distance: Distance,
pub min_shared_time: Option<Duration>,
pub smallest_time_window: Option<Duration>,
pub max_jobs_per_cluster: Option<usize>,
}
Expand description
Defines a various thresholds to control cluster size.
Fields§
§moving_duration: Duration
Moving duration limit.
moving_distance: Distance
Moving distance limit.
Minimum shared time for jobs (non-inclusive).
smallest_time_window: Option<Duration>
The smallest time window of the cluster after service time shrinking.
max_jobs_per_cluster: Option<usize>
The maximum amount of jobs per cluster.
Trait Implementations§
Source§impl Clone for ThresholdPolicy
impl Clone for ThresholdPolicy
Source§fn clone(&self) -> ThresholdPolicy
fn clone(&self) -> ThresholdPolicy
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 moreAuto Trait Implementations§
impl Freeze for ThresholdPolicy
impl RefUnwindSafe for ThresholdPolicy
impl Send for ThresholdPolicy
impl Sync for ThresholdPolicy
impl Unpin for ThresholdPolicy
impl UnwindSafe for ThresholdPolicy
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