pub struct WorkflowInstance<S> { /* private fields */ }Expand description
Typed local state owned by one deterministic workflow invocation.
Use WorkflowInstance::update for the same state transitions during
ordinary execution and replay. A replayed query receives a detached
immutable Arc<S> rather than this mutation-capable handle.
Implementations§
Source§impl<S> WorkflowInstance<S>
impl<S> WorkflowInstance<S>
Trait Implementations§
Source§impl<S: Clone> Clone for WorkflowInstance<S>
impl<S: Clone> Clone for WorkflowInstance<S>
Auto Trait Implementations§
impl<S> Freeze for WorkflowInstance<S>
impl<S> RefUnwindSafe for WorkflowInstance<S>
impl<S> Send for WorkflowInstance<S>
impl<S> Sync for WorkflowInstance<S>
impl<S> Unpin for WorkflowInstance<S>
impl<S> UnsafeUnpin for WorkflowInstance<S>
impl<S> UnwindSafe for WorkflowInstance<S>
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