pub struct StateUpdate<S: State> {
pub update: S::Update,
pub label: Option<String>,
pub as_node: Option<String>,
}Expand description
State update for manual checkpoint modifications
Used by CompiledGraph::update_state and CompiledGraph::bulk_update_state
to apply state changes outside of normal graph execution.
Fields§
§update: S::UpdateState update to apply
label: Option<String>Optional label for this update (shown in state history)
as_node: Option<String>Optional node name credited with this update
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for StateUpdate<S>
impl<S> RefUnwindSafe for StateUpdate<S>
impl<S> Send for StateUpdate<S>
impl<S> Sync for StateUpdate<S>
impl<S> Unpin for StateUpdate<S>
impl<S> UnsafeUnpin for StateUpdate<S>
impl<S> UnwindSafe for StateUpdate<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