pub enum SourceComponentIndex {
Successor,
Proxy(usize),
}Expand description
Identifies the source of an agent-to-client message.
This enum handles the fact that the conductor may receive messages from two different sources:
- From one of its managed components (identified by index)
- From the conductor’s own successor in a larger proxy chain (when in proxy mode)
Variants§
Successor
Message from the conductor’s agent or successor.
Proxy(usize)
Message from a specific component at the given index in the managed chain.
Trait Implementations§
Source§impl Clone for SourceComponentIndex
impl Clone for SourceComponentIndex
Source§fn clone(&self) -> SourceComponentIndex
fn clone(&self) -> SourceComponentIndex
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 SourceComponentIndex
impl Debug for SourceComponentIndex
impl Copy for SourceComponentIndex
Auto Trait Implementations§
impl Freeze for SourceComponentIndex
impl RefUnwindSafe for SourceComponentIndex
impl Send for SourceComponentIndex
impl Sync for SourceComponentIndex
impl Unpin for SourceComponentIndex
impl UnwindSafe for SourceComponentIndex
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