pub struct NodeSnapshot {
pub status: NodeStatus,
pub exec_id: String,
pub attempt: u32,
pub resume_state: Option<Value>,
pub checkpoint: Option<Value>,
pub counted: Option<Usage>,
}Expand description
Persisted state of one node.
Fields§
§status: NodeStatus§exec_id: String§attempt: u32§resume_state: Option<Value>Node-owned resume state (for nodes that paused themselves, e.g. human input or a container holding the snapshots of its child frames).
checkpoint: Option<Value>The progress of a node that was running when the run was preempted
(crate::node::NodeContext::checkpoint): its next attempt gets it.
counted: Option<Usage>What the run already counted of a node that paused (its usage before the pause): taken back from what it reports when it finishes.
Trait Implementations§
Source§impl Clone for NodeSnapshot
impl Clone for NodeSnapshot
Source§impl Debug for NodeSnapshot
impl Debug for NodeSnapshot
Source§impl Default for NodeSnapshot
impl Default for NodeSnapshot
Source§impl<'de> Deserialize<'de> for NodeSnapshot
impl<'de> Deserialize<'de> for NodeSnapshot
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 PartialEq for NodeSnapshot
impl PartialEq for NodeSnapshot
Source§impl Serialize for NodeSnapshot
impl Serialize for NodeSnapshot
impl StructuralPartialEq for NodeSnapshot
Auto Trait Implementations§
impl Forget for NodeSnapshot
impl Freeze for NodeSnapshotwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for NodeSnapshot
impl RefUnwindSafe for NodeSnapshot
impl Send for NodeSnapshot
impl Sync for NodeSnapshot
impl Unpin for NodeSnapshot
impl UnsafeUnpin for NodeSnapshotwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for NodeSnapshot
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