pub struct Checkpoint {
pub last_completed_step: Option<String>,
pub completed_steps: Vec<String>,
pub in_progress_step: Option<String>,
pub cursor_step: Option<String>,
pub cursor: Option<Vec<u8>>,
pub schema_version: u32,
pub step_set_hash: String,
pub crashes_by_step: Vec<(String, u32)>,
}Expand description
Durable progress within a resumable job.
Fields§
§last_completed_step: Option<String>§completed_steps: Vec<String>Completed steps in execution order. Replay compares them positionally.
in_progress_step: Option<String>The step recorded before its side effects began.
cursor_step: Option<String>§cursor: Option<Vec<u8>>Stored outside checkpoint JSON to avoid base64 encoding native binary data.
schema_version: u32§step_set_hash: String§crashes_by_step: Vec<(String, u32)>Implementations§
Source§impl Checkpoint
impl Checkpoint
Sourcepub fn resumability(
&self,
current_version: u32,
current_step_set_hash: &str,
) -> Resume
pub fn resumability( &self, current_version: u32, current_step_set_hash: &str, ) -> Resume
Decide whether a checkpoint can continue against the current task definition.
Trait Implementations§
Source§impl Clone for Checkpoint
impl Clone for Checkpoint
Source§fn clone(&self) -> Checkpoint
fn clone(&self) -> Checkpoint
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 Checkpoint
impl Debug for Checkpoint
Source§impl Default for Checkpoint
impl Default for Checkpoint
Source§fn default() -> Checkpoint
fn default() -> Checkpoint
Returns the “default value” for a type. Read more
Source§impl PartialEq for Checkpoint
impl PartialEq for Checkpoint
impl StructuralPartialEq for Checkpoint
Auto Trait Implementations§
impl Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnsafeUnpin for Checkpoint
impl UnwindSafe for Checkpoint
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