pub enum RuntimeLane {
Legacy,
Structured,
Asupersync,
}Expand description
Runtime lane for the Asupersync migration rollout.
Controls which subscription/effect execution backend is active.
The default is Structured, reflecting the completed CancellationToken migration (bd-3tmu4).
§Migration rollout
Legacy— pre-migration thread-based subscriptions with manual stop coordinationStructured— CancellationToken-backed subscriptions (current default after bd-3tmu4)Asupersync— full Asupersync-native execution (future)
Selection is logged at startup so operators can tell which lane is active.
Fallback from Asupersync → Structured → Legacy is automatic on error.
Variants§
Legacy
Pre-migration behavior: thread-based subscriptions with manual stop coordination. This is the safe default that preserves all existing semantics.
Structured
Structured cancellation: subscriptions use CancellationToken internally. Externally observable behavior is identical to Legacy.
Asupersync
Full Asupersync-native execution (reserved for future use). Falls back to Structured if Asupersync primitives are unavailable.
Implementations§
Source§impl RuntimeLane
impl RuntimeLane
Sourcepub fn resolve(self) -> Self
pub fn resolve(self) -> Self
Resolve the effective lane, applying fallback rules.
If the requested lane is not yet implemented, falls back to the highest available lane. Currently: Asupersync → Structured.
Sourcepub fn uses_structured_cancellation(self) -> bool
pub fn uses_structured_cancellation(self) -> bool
Check if this lane uses structured cancellation (CancellationToken).
Trait Implementations§
Source§impl Clone for RuntimeLane
impl Clone for RuntimeLane
Source§fn clone(&self) -> RuntimeLane
fn clone(&self) -> RuntimeLane
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeLane
impl Debug for RuntimeLane
Source§impl Default for RuntimeLane
impl Default for RuntimeLane
Source§fn default() -> RuntimeLane
fn default() -> RuntimeLane
Source§impl Display for RuntimeLane
impl Display for RuntimeLane
Source§impl Hash for RuntimeLane
impl Hash for RuntimeLane
Source§impl PartialEq for RuntimeLane
impl PartialEq for RuntimeLane
impl Copy for RuntimeLane
impl Eq for RuntimeLane
impl StructuralPartialEq for RuntimeLane
Auto Trait Implementations§
impl Freeze for RuntimeLane
impl RefUnwindSafe for RuntimeLane
impl Send for RuntimeLane
impl Sync for RuntimeLane
impl Unpin for RuntimeLane
impl UnsafeUnpin for RuntimeLane
impl UnwindSafe for RuntimeLane
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.