pub enum StreamId {
Main,
Sidechain,
}Expand description
Identifies whether an event is part of the main session chain or a sub-agent sidechain.
Claude Code records isSidechain: true on events that originate inside
a spawned sub-agent (e.g. via the Agent tool). Keeping them separate
is required for correct DAG construction and for meaningful TUI display.
Variants§
Main
The main session chain — the top-level run the user started.
Sidechain
A sub-agent run spawned from the main chain or another sidechain.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StreamId
impl<'de> Deserialize<'de> for StreamId
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
impl Copy for StreamId
impl Eq for StreamId
impl StructuralPartialEq for StreamId
Auto Trait Implementations§
impl Freeze for StreamId
impl RefUnwindSafe for StreamId
impl Send for StreamId
impl Sync for StreamId
impl Unpin for StreamId
impl UnsafeUnpin for StreamId
impl UnwindSafe for StreamId
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