pub struct PoolGate { /* private fields */ }Expand description
The commit-verdict gate, held between “all workers pinned + pushed” and the host
COMMIT’s outcome. Releasing it sends each worker its terminal TxFinish with the
verdict inline; dropping it without either releases the workers as an abort (no
worker hangs).
Implementations§
Source§impl PoolGate
impl PoolGate
Sourcepub fn commit(self)
pub fn commit(self)
Report a successful host commit. Workers emit Progressed(N) after their
speculative Changed(N) slices and discard derivation state. The pool trusts
this verdict; it does not check the host connection. Releasing from a pre-commit
hook requires separate host-commit failure handling; see the module docs.
Sourcepub fn abort(self)
pub fn abort(self)
The host’s transaction will not commit: a worker that received pushes has
irreversibly advanced its operator state for a transaction that never happened,
so it tears down + re-hydrates (terminal Faulted per hosted query); a worker
that received nothing rolls its snapshot back cleanly.