pub struct Checkpoint<C: Context, WI: WorkItem> {
pub context: C,
pub queue: VecDeque<WI>,
}Expand description
A snapshot of a workflow’s pending work and its context.
Fields§
§context: CThe user-provided context for the workflow
queue: VecDeque<WI>The queue of pending work items
Implementations§
Trait Implementations§
Source§impl<C: Clone + Context, WI: Clone + WorkItem> Clone for Checkpoint<C, WI>
impl<C: Clone + Context, WI: Clone + WorkItem> Clone for Checkpoint<C, WI>
Source§fn clone(&self) -> Checkpoint<C, WI>
fn clone(&self) -> Checkpoint<C, WI>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, C, WI> Deserialize<'de> for Checkpoint<C, WI>where
C: Serialize + for<'de2> Deserialize<'de2> + Context,
WI: Serialize + for<'de2> Deserialize<'de2> + WorkItem,
impl<'de, C, WI> Deserialize<'de> for Checkpoint<C, WI>where
C: Serialize + for<'de2> Deserialize<'de2> + Context,
WI: Serialize + for<'de2> Deserialize<'de2> + WorkItem,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C, WI> Serialize for Checkpoint<C, WI>where
C: Serialize + for<'de2> Deserialize<'de2> + Context,
WI: Serialize + for<'de2> Deserialize<'de2> + WorkItem,
impl<C, WI> Serialize for Checkpoint<C, WI>where
C: Serialize + for<'de2> Deserialize<'de2> + Context,
WI: Serialize + for<'de2> Deserialize<'de2> + WorkItem,
Auto Trait Implementations§
impl<C, WI> Freeze for Checkpoint<C, WI>where
C: Freeze,
impl<C, WI> RefUnwindSafe for Checkpoint<C, WI>where
C: RefUnwindSafe,
WI: RefUnwindSafe,
impl<C, WI> Send for Checkpoint<C, WI>
impl<C, WI> Sync for Checkpoint<C, WI>
impl<C, WI> Unpin for Checkpoint<C, WI>
impl<C, WI> UnwindSafe for Checkpoint<C, WI>where
C: UnwindSafe,
WI: UnwindSafe,
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