pub struct CheckpointPolicy {
pub triggers: Vec<CheckpointTrigger>,
}Expand description
Checkpoint 策略。
Fields§
§triggers: Vec<CheckpointTrigger>Implementations§
Source§impl CheckpointPolicy
impl CheckpointPolicy
pub fn conservative() -> Self
pub fn minimal() -> Self
pub fn manual() -> Self
pub fn should_checkpoint_on_barrier(&self) -> bool
pub fn should_checkpoint_on_completion(&self) -> bool
pub fn should_checkpoint_on_human_decision(&self) -> bool
pub fn should_checkpoint_on_explicit(&self) -> bool
pub fn has_adaptive_trigger(&self) -> bool
Trait Implementations§
Source§impl Clone for CheckpointPolicy
impl Clone for CheckpointPolicy
Source§fn clone(&self) -> CheckpointPolicy
fn clone(&self) -> CheckpointPolicy
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 CheckpointPolicy
impl Debug for CheckpointPolicy
Auto Trait Implementations§
impl Freeze for CheckpointPolicy
impl RefUnwindSafe for CheckpointPolicy
impl Send for CheckpointPolicy
impl Sync for CheckpointPolicy
impl Unpin for CheckpointPolicy
impl UnsafeUnpin for CheckpointPolicy
impl UnwindSafe for CheckpointPolicy
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