Skip to main content

agent_client_protocol/
line_direction.rs

1use std::sync::Arc;
2
3pub(crate) type DebugCallback = Arc<dyn Fn(&str, LineDirection) + Send + Sync>;
4
5/// Direction of a line being sent or received by a native transport.
6#[derive(Debug, Clone, Copy, PartialEq, Eq)]
7pub enum LineDirection {
8    /// Line being sent to the agent (stdin).
9    Stdin,
10    /// Line being received from the agent (stdout).
11    Stdout,
12    /// Line being received from the agent (stderr).
13    Stderr,
14}