pub struct TerminalSessionChannel { /* private fields */ }Expand description
A SessionChannel implementation for terminal-based interaction (v0.7.0).
Emits session events to stdout and reads human input from stdin.
Implementations§
Trait Implementations§
Source§impl Default for TerminalSessionChannel
impl Default for TerminalSessionChannel
Source§impl SessionChannel for TerminalSessionChannel
impl SessionChannel for TerminalSessionChannel
Source§fn emit(&self, event: &SessionEvent) -> Result<(), SessionChannelError>
fn emit(&self, event: &SessionEvent) -> Result<(), SessionChannelError>
Display agent output to the human (streaming).
Source§fn receive(
&self,
timeout: Duration,
) -> Result<Option<HumanInput>, SessionChannelError>
fn receive( &self, timeout: Duration, ) -> Result<Option<HumanInput>, SessionChannelError>
Receive human input (blocks until available or timeout).
Returns
None on timeout.Source§fn channel_id(&self) -> &str
fn channel_id(&self) -> &str
Channel identity (for audit trail).
e.g., “cli:tty0”, “discord:thread:123”, “slack:C04:1234567890”
Auto Trait Implementations§
impl Freeze for TerminalSessionChannel
impl RefUnwindSafe for TerminalSessionChannel
impl Send for TerminalSessionChannel
impl Sync for TerminalSessionChannel
impl Unpin for TerminalSessionChannel
impl UnsafeUnpin for TerminalSessionChannel
impl UnwindSafe for TerminalSessionChannel
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