pub struct ExecutionContext<S: State> {
pub state: S,
pub field_versions: FieldVersionTracker,
pub versions_seen: VersionsSeen,
pub pending_writes: Vec<PendingWrite>,
}Expand description
Mutable execution context: holds state and version tracking
Encapsulates the mutable portions of the Pregel loop that change during execution, separating them from the immutable configuration.
Fields§
§state: SCurrent state
field_versions: FieldVersionTrackerField version tracker (equivalent to channel_versions)
versions_seen: VersionsSeenVersions seen by each node (equivalent to versions_seen)
pending_writes: Vec<PendingWrite>Pending writes for checkpoint recovery
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for ExecutionContext<S>where
S: Freeze,
impl<S> RefUnwindSafe for ExecutionContext<S>where
S: RefUnwindSafe,
impl<S> Send for ExecutionContext<S>
impl<S> Sync for ExecutionContext<S>
impl<S> Unpin for ExecutionContext<S>where
S: Unpin,
impl<S> UnsafeUnpin for ExecutionContext<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for ExecutionContext<S>where
S: 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