pub struct PolicyScore {
pub level_changes: u32,
pub mean_parity: f32,
pub escalation_lag: u32,
}Expand description
Score of a policy over a trace: lower is better.
Fields§
§level_changes: u32Number of times the level changed (oscillation; lower is better).
mean_parity: f32Mean parity shards (overhead; lower is better).
escalation_lag: u32Ticks from the first high-loss sample until the level first
reaches Interleave (responsiveness; lower is better). u32::MAX
if it never escalated while loss was high.
Trait Implementations§
Source§impl Clone for PolicyScore
impl Clone for PolicyScore
Source§fn clone(&self) -> PolicyScore
fn clone(&self) -> PolicyScore
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 PolicyScore
Auto Trait Implementations§
impl Freeze for PolicyScore
impl RefUnwindSafe for PolicyScore
impl Send for PolicyScore
impl Sync for PolicyScore
impl Unpin for PolicyScore
impl UnsafeUnpin for PolicyScore
impl UnwindSafe for PolicyScore
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