pub struct StickyRouter { /* private fields */ }Expand description
Hash-based sticky routing for stateful agents (P2-9).
The same conversation key (e.g. task id or owner) always maps to the same slot, so a stateful agent — memory, session, tool state — is pinned to one backend for the life of the conversation. The caller maps a stable slot → agent instance and keeps that mapping while the agent is healthy.
Implementations§
Trait Implementations§
Source§impl Clone for StickyRouter
impl Clone for StickyRouter
Source§fn clone(&self) -> StickyRouter
fn clone(&self) -> StickyRouter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StickyRouter
Auto Trait Implementations§
impl Freeze for StickyRouter
impl RefUnwindSafe for StickyRouter
impl Send for StickyRouter
impl Sync for StickyRouter
impl Unpin for StickyRouter
impl UnsafeUnpin for StickyRouter
impl UnwindSafe for StickyRouter
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