pub struct CheckpointScore {
pub duration_weight: f64,
pub token_weight: f64,
pub side_effect_weight: f64,
pub threshold: f64,
}Expand description
Checkpoint 评分。
Fields§
§duration_weight: f64§token_weight: f64§side_effect_weight: f64§threshold: f64Implementations§
Source§impl CheckpointScore
impl CheckpointScore
pub fn calculate(&self, metadata: &ExecutionMetadata) -> f64
pub fn should_checkpoint(&self, metadata: &ExecutionMetadata) -> bool
Trait Implementations§
Source§impl Clone for CheckpointScore
impl Clone for CheckpointScore
Source§fn clone(&self) -> CheckpointScore
fn clone(&self) -> CheckpointScore
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 CheckpointScore
impl Debug for CheckpointScore
Auto Trait Implementations§
impl Freeze for CheckpointScore
impl RefUnwindSafe for CheckpointScore
impl Send for CheckpointScore
impl Sync for CheckpointScore
impl Unpin for CheckpointScore
impl UnsafeUnpin for CheckpointScore
impl UnwindSafe for CheckpointScore
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