pub struct TerminalChannel { /* private fields */ }Expand description
A ReviewChannel that uses stdin/stdout for human interaction.
Renders interaction requests as formatted text, prompts for input, and parses responses into InteractionResponse values.
Implementations§
Trait Implementations§
Source§impl ReviewChannel for TerminalChannel
impl ReviewChannel for TerminalChannel
Source§fn request_interaction(
&self,
request: &InteractionRequest,
) -> Result<InteractionResponse, ReviewChannelError>
fn request_interaction( &self, request: &InteractionRequest, ) -> Result<InteractionResponse, ReviewChannelError>
Send an interaction request to the human and await their response. Read more
Source§fn notify(&self, notification: &Notification) -> Result<(), ReviewChannelError>
fn notify(&self, notification: &Notification) -> Result<(), ReviewChannelError>
Non-blocking notification to the human. Read more
Source§fn capabilities(&self) -> ChannelCapabilities
fn capabilities(&self) -> ChannelCapabilities
What this channel supports (async responses, rich media, threads, etc.).
Source§fn channel_id(&self) -> &str
fn channel_id(&self) -> &str
Channel identity string for audit trail (e.g., “terminal:tty0”, “slack:C04ABC”).
Auto Trait Implementations§
impl !Freeze for TerminalChannel
impl RefUnwindSafe for TerminalChannel
impl Send for TerminalChannel
impl Sync for TerminalChannel
impl Unpin for TerminalChannel
impl UnsafeUnpin for TerminalChannel
impl UnwindSafe for TerminalChannel
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