pub enum ComponentIndex {
Client,
Proxy(usize),
Agent,
}Expand description
Identifies a component in the conductor’s chain for tracing purposes.
Used to track message sources and destinations through the proxy chain.
Variants§
Client
The client (editor) at the start of the chain.
Proxy(usize)
A proxy component at the given index.
Agent
The successor (agent in agent mode, outer conductor in proxy mode).
Implementations§
Source§impl ComponentIndex
impl ComponentIndex
Sourcepub fn predecessor_of(proxy_index: usize) -> Self
pub fn predecessor_of(proxy_index: usize) -> Self
Return the index for the predecessor of proxy_index, which might be Client.
Sourcepub fn successor_of(proxy_index: usize, num_proxies: usize) -> Self
pub fn successor_of(proxy_index: usize, num_proxies: usize) -> Self
Return the index for the predecessor of proxy_index, which might be Client.
Trait Implementations§
Source§impl Clone for ComponentIndex
impl Clone for ComponentIndex
Source§fn clone(&self) -> ComponentIndex
fn clone(&self) -> ComponentIndex
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 ComponentIndex
impl Debug for ComponentIndex
impl Copy for ComponentIndex
Auto Trait Implementations§
impl Freeze for ComponentIndex
impl RefUnwindSafe for ComponentIndex
impl Send for ComponentIndex
impl Sync for ComponentIndex
impl Unpin for ComponentIndex
impl UnsafeUnpin for ComponentIndex
impl UnwindSafe for ComponentIndex
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