pub struct PendingWrites<U: StateUpdate> { /* private fields */ }Expand description
Implementations§
Source§impl<U: StateUpdate> PendingWrites<U>
impl<U: StateUpdate> PendingWrites<U>
Sourcepub fn record_success(&mut self, node_name: &str, update: U)
pub fn record_success(&mut self, node_name: &str, update: U)
Record a successful node execution with its update.
Sourcepub fn record_failure(&mut self, node_name: &str, error: &PeError)
pub fn record_failure(&mut self, node_name: &str, error: &PeError)
Record a failed node execution.
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Returns true if any node failed in this superstep.
Sourcepub fn drain_successes(&mut self) -> Vec<(String, U)>
pub fn drain_successes(&mut self) -> Vec<(String, U)>
Drain all successful writes, leaving the tracker empty.
Trait Implementations§
Source§impl<U: Clone + StateUpdate> Clone for PendingWrites<U>
impl<U: Clone + StateUpdate> Clone for PendingWrites<U>
Source§fn clone(&self) -> PendingWrites<U>
fn clone(&self) -> PendingWrites<U>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<U: Debug + StateUpdate> Debug for PendingWrites<U>
impl<U: Debug + StateUpdate> Debug for PendingWrites<U>
Source§impl<U: StateUpdate> Default for PendingWrites<U>
impl<U: StateUpdate> Default for PendingWrites<U>
Auto Trait Implementations§
impl<U> Freeze for PendingWrites<U>
impl<U> RefUnwindSafe for PendingWrites<U>where
U: RefUnwindSafe,
impl<U> Send for PendingWrites<U>
impl<U> Sync for PendingWrites<U>
impl<U> Unpin for PendingWrites<U>where
U: Unpin,
impl<U> UnsafeUnpin for PendingWrites<U>
impl<U> UnwindSafe for PendingWrites<U>where
U: 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