pub struct SchedulerPolicyConfig {
pub version: u32,
pub critical_path_weight: i64,
pub fanout_weight: i64,
pub age_weight: i64,
pub token_cost_weight: i64,
}Expand description
Versioned deterministic DAG scheduling policy. All weights are non-negative; setting every weight to zero reduces ordering to FIFO with node-id tie-breaking.
Fields§
§version: u32§critical_path_weight: i64§fanout_weight: i64§age_weight: i64§token_cost_weight: i64Implementations§
Trait Implementations§
Source§impl Clone for SchedulerPolicyConfig
impl Clone for SchedulerPolicyConfig
Source§fn clone(&self) -> SchedulerPolicyConfig
fn clone(&self) -> SchedulerPolicyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SchedulerPolicyConfig
Source§impl Debug for SchedulerPolicyConfig
impl Debug for SchedulerPolicyConfig
Source§impl Default for SchedulerPolicyConfig
impl Default for SchedulerPolicyConfig
Source§impl<'de> Deserialize<'de> for SchedulerPolicyConfig
impl<'de> Deserialize<'de> for SchedulerPolicyConfig
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
impl Eq for SchedulerPolicyConfig
Source§impl PartialEq for SchedulerPolicyConfig
impl PartialEq for SchedulerPolicyConfig
Source§impl Serialize for SchedulerPolicyConfig
impl Serialize for SchedulerPolicyConfig
impl StructuralPartialEq for SchedulerPolicyConfig
Auto Trait Implementations§
impl Freeze for SchedulerPolicyConfig
impl RefUnwindSafe for SchedulerPolicyConfig
impl Send for SchedulerPolicyConfig
impl Sync for SchedulerPolicyConfig
impl Unpin for SchedulerPolicyConfig
impl UnsafeUnpin for SchedulerPolicyConfig
impl UnwindSafe for SchedulerPolicyConfig
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