pub enum PausableMode {
Default,
ResumeAll,
Off,
}Expand description
Pause behavior mode (canonical-spec §2.6 — three modes shipped in TS; Slice F audit, 2026-05-07 — closed the Rust port gap).
| Mode | Outgoing tier-3 routing while paused | RESUME behavior |
|---|---|---|
PausableMode::Default | suppress fn-fire upstream (no DIRTY emitted) | fire fn ONCE on RESUME if any dep delivered DATA during pause; collapses N pause-window writes into one settle |
PausableMode::ResumeAll | buffer outgoing tier-3 / tier-4 messages per-wave | replay each buffered wave verbatim on RESUME |
PausableMode::Off | dispatcher ignores PAUSE; tier-3 flushes immediately | no-op (no buffer to drain) |
Default is PausableMode::Default per canonical §2.6 — every untagged
source picks it up. Memory profile is O(1) per node (no buffer); the
trade-off is “subscribers see one consolidated DATA on RESUME” rather
than the K mid-pause emissions verbatim.
Note: tier-1 (DIRTY) / tier-2 (PAUSE/RESUME) / tier-5 (COMPLETE/ERROR) / tier-6 (TEARDOWN) bypass pause regardless of mode — they remain observable so leaked pause-controllers cannot strand subscribers.
Variants§
Default
Suppress fn-fire while paused; fire once on RESUME if any dep delivered DATA during the pause window. Canonical default.
ResumeAll
Buffer outgoing tier-3 / tier-4 messages per-wave; replay on RESUME. Use when subscribers need verbatim emit history (e.g. an audit log, replay-on-reconnect bridge).
Off
Dispatcher ignores PAUSE for this node — tier-3 flushes immediately even while a lock is held. Use for nodes whose value production is intrinsically pause-immune (telemetry counters, monotonic timers).
Trait Implementations§
Source§impl Clone for PausableMode
impl Clone for PausableMode
Source§fn clone(&self) -> PausableMode
fn clone(&self) -> PausableMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PausableMode
impl Debug for PausableMode
Source§impl Default for PausableMode
impl Default for PausableMode
Source§fn default() -> PausableMode
fn default() -> PausableMode
Source§impl PartialEq for PausableMode
impl PartialEq for PausableMode
Source§fn eq(&self, other: &PausableMode) -> bool
fn eq(&self, other: &PausableMode) -> bool
self and other values to be equal, and is used by ==.impl Copy for PausableMode
impl Eq for PausableMode
impl StructuralPartialEq for PausableMode
Auto Trait Implementations§
impl Freeze for PausableMode
impl RefUnwindSafe for PausableMode
impl Send for PausableMode
impl Sync for PausableMode
impl Unpin for PausableMode
impl UnsafeUnpin for PausableMode
impl UnwindSafe for PausableMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.