pub struct CoherenceRouter { /* private fields */ }Expand description
The coherence router — dispatches to appropriate backend.
Implementations§
Source§impl CoherenceRouter
impl CoherenceRouter
Sourcepub fn with_quantum(self, backend: Box<dyn CoherenceBackendImpl>) -> Self
pub fn with_quantum(self, backend: Box<dyn CoherenceBackendImpl>) -> Self
Register an optional backend.
pub fn with_distributed(self, backend: Box<dyn CoherenceBackendImpl>) -> Self
pub fn with_circadian(self, backend: Box<dyn CoherenceBackendImpl>) -> Self
Sourcepub fn gate(
&self,
ctx: &ActionContext,
backend: CoherenceBackend,
) -> GateDecision
pub fn gate( &self, ctx: &ActionContext, backend: CoherenceBackend, ) -> GateDecision
Gate an action using the specified backend.
Sourcepub fn gate_with_witness(
&self,
ctx: &ActionContext,
backend: CoherenceBackend,
sequence: u64,
) -> (GateDecision, CrossParadigmWitness)
pub fn gate_with_witness( &self, ctx: &ActionContext, backend: CoherenceBackend, sequence: u64, ) -> (GateDecision, CrossParadigmWitness)
Gate with witness generation.
Sourcepub fn auto_gate(&self, ctx: &ActionContext) -> GateDecision
pub fn auto_gate(&self, ctx: &ActionContext) -> GateDecision
Auto-select backend based on action context. Implements 3-tier routing: fast-path → sheaf → unanimous
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoherenceRouter
impl !RefUnwindSafe for CoherenceRouter
impl Send for CoherenceRouter
impl Sync for CoherenceRouter
impl Unpin for CoherenceRouter
impl UnsafeUnpin for CoherenceRouter
impl !UnwindSafe for CoherenceRouter
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