pub struct TransferChain { /* private fields */ }Expand description
Safety mechanism tracking the ordered sequence of agents in a transfer chain.
The orchestrator creates a new chain per user message and carries it forward through transfers. This prevents infinite handoff loops and enforces depth limits.
Implementations§
Source§impl TransferChain
impl TransferChain
Sourcepub const fn new(max_depth: usize) -> Self
pub const fn new(max_depth: usize) -> Self
Create a new empty chain with the given maximum depth.
Trait Implementations§
Source§impl Clone for TransferChain
impl Clone for TransferChain
Source§fn clone(&self) -> TransferChain
fn clone(&self) -> TransferChain
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferChain
impl Debug for TransferChain
Source§impl Default for TransferChain
impl Default for TransferChain
Source§impl<'de> Deserialize<'de> for TransferChain
impl<'de> Deserialize<'de> for TransferChain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransferChain
impl RefUnwindSafe for TransferChain
impl Send for TransferChain
impl Sync for TransferChain
impl Unpin for TransferChain
impl UnsafeUnpin for TransferChain
impl UnwindSafe for TransferChain
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