Enum nettu_scheduler_domain::scheduling::RoundRobinAlgorithm [−][src]
pub enum RoundRobinAlgorithm {
Availability,
EqualDistribution,
}
Expand description
Round robin algorithm to decide which member should be assigned a
Service Event
when there are multiple members of a Service
Variants
Optimizes for availability
This assigns the Service Event
to the member which was
least recently assigned a Service Event
for the given
Service
.
Optimizes for equal distribution
This assigns the Service Event
to the member which was
least number of assigned Service Event
s for the next
time period. Time period in this context is hard coded to be
two weeks.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RoundRobinAlgorithm
impl Send for RoundRobinAlgorithm
impl Sync for RoundRobinAlgorithm
impl Unpin for RoundRobinAlgorithm
impl UnwindSafe for RoundRobinAlgorithm
Blanket Implementations
Mutably borrows from an owned value. Read more