pub struct SchedulerPolicy {
pub critical_path_weight: Option<u32>,
pub fanout_weight: Option<u32>,
pub age_weight: Option<u32>,
pub token_cost_weight: Option<u32>,
}Expand description
Ready-queue ordering weights. No version field: §16.1 leaves exactly two revision markers on
the wire (abi_version, checkpoint_version), and a per-policy version is the third one
DEC-6 removed.
Fields§
§critical_path_weight: Option<u32>§fanout_weight: Option<u32>§age_weight: Option<u32>§token_cost_weight: Option<u32>Trait Implementations§
Source§impl Clone for SchedulerPolicy
impl Clone for SchedulerPolicy
Source§fn clone(&self) -> SchedulerPolicy
fn clone(&self) -> SchedulerPolicy
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 moreSource§impl Debug for SchedulerPolicy
impl Debug for SchedulerPolicy
Source§impl Default for SchedulerPolicy
impl Default for SchedulerPolicy
Source§fn default() -> SchedulerPolicy
fn default() -> SchedulerPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchedulerPolicy
impl<'de> Deserialize<'de> for SchedulerPolicy
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
Source§impl PartialEq for SchedulerPolicy
impl PartialEq for SchedulerPolicy
Source§impl Serialize for SchedulerPolicy
impl Serialize for SchedulerPolicy
impl StructuralPartialEq for SchedulerPolicy
Auto Trait Implementations§
impl Freeze for SchedulerPolicy
impl RefUnwindSafe for SchedulerPolicy
impl Send for SchedulerPolicy
impl Sync for SchedulerPolicy
impl Unpin for SchedulerPolicy
impl UnsafeUnpin for SchedulerPolicy
impl UnwindSafe for SchedulerPolicy
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