pub struct SchedulingPlan {
pub request_id: String,
pub assignments: Vec<TaskAssignment>,
pub tasks_total: usize,
pub tasks_scheduled: usize,
pub makespan_min: i64,
pub solver: String,
pub status: String,
pub wall_time_seconds: f64,
}Expand description
Written to ContextKey::Strategies with id prefix "scheduling-plan-<solver>:".
Fields§
§request_id: String§assignments: Vec<TaskAssignment>§tasks_total: usize§tasks_scheduled: usize§makespan_min: i64Completion time of the last scheduled task (0 if nothing scheduled).
solver: StringShort identifier for the algorithm that produced this plan.
status: String"optimal", "feasible", "infeasible", or "error".
wall_time_seconds: f64Implementations§
Source§impl SchedulingPlan
impl SchedulingPlan
Sourcepub fn throughput_ratio(&self) -> f64
pub fn throughput_ratio(&self) -> f64
Throughput ratio: scheduled / total tasks. Used to derive confidence.
Trait Implementations§
Source§impl Clone for SchedulingPlan
impl Clone for SchedulingPlan
Source§fn clone(&self) -> SchedulingPlan
fn clone(&self) -> SchedulingPlan
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 SchedulingPlan
impl Debug for SchedulingPlan
Source§impl<'de> Deserialize<'de> for SchedulingPlan
impl<'de> Deserialize<'de> for SchedulingPlan
Source§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 Freeze for SchedulingPlan
impl RefUnwindSafe for SchedulingPlan
impl Send for SchedulingPlan
impl Sync for SchedulingPlan
impl Unpin for SchedulingPlan
impl UnsafeUnpin for SchedulingPlan
impl UnwindSafe for SchedulingPlan
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