Struct RouteHandle
pub struct RouteHandle { /* private fields */ }Expand description
A cached route for an in-flight task: the RPC URL and tenant that
created the task. Stored under the composite key (peer, agent, task_id)
by send_message and reused by get_task/cancel so a task’s lifecycle
stays on one endpoint — a follow-up call cannot accidentally route to a
different agent/interface on an aggregate card. The peer and agent are
carried in the cache key; rpc_url and tenant are the payload needed
to repeat the call on the same endpoint. inserted_at records when the
route was cached so the bounded cache can evict the oldest entry when it
reaches capacity (abandoned in-flight routes must not grow without limit).
Trait Implementations§
Source§impl Clone for RouteHandle
impl Clone for RouteHandle
Source§fn clone(&self) -> RouteHandle
fn clone(&self) -> RouteHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RouteHandle
impl RefUnwindSafe for RouteHandle
impl Send for RouteHandle
impl Sync for RouteHandle
impl Unpin for RouteHandle
impl UnsafeUnpin for RouteHandle
impl UnwindSafe for RouteHandle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more