agent-client-protocol 5.5.1

Core protocol types and traits for the Agent Client Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::sync::Arc;

pub(crate) type DebugCallback = Arc<dyn Fn(&str, LineDirection) + Send + Sync>;

/// Direction of a line being sent or received by a native transport.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum LineDirection {
    /// Line being sent to the agent (stdin).
    Stdin,
    /// Line being received from the agent (stdout).
    Stdout,
    /// Line being received from the agent (stderr).
    Stderr,
}