pub struct StatefulTask { /* private fields */ }Expand description
A task whose checkpoint is loaded before, and saved after, each execution.
The checkpoint is keyed by state:{id} in the provided Storage, so a
task that crashed partway through can resume from its last saved state
instead of starting over. The step closure receives the previously saved
state (or null on first run).
Implementations§
Source§impl StatefulTask
impl StatefulTask
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StatefulTask
impl !UnwindSafe for StatefulTask
impl Freeze for StatefulTask
impl Send for StatefulTask
impl Sync for StatefulTask
impl Unpin for StatefulTask
impl UnsafeUnpin for StatefulTask
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