@@ -12,11 +12,13 @@ use crate::pty::socket_async::DEFAULT_BUFFER_SIZE;
1212use crate :: pty_buffer:: PtyBuffer ;
1313
1414/// Handle reading from PTY master and broadcasting to clients (async version)
15+ #[ allow( dead_code) ]
1516pub struct AsyncPtyIoHandler {
1617 master_fd : RawFd ,
1718 buffer_size : usize ,
1819}
1920
21+ #[ allow( dead_code) ]
2022impl AsyncPtyIoHandler {
2123 pub fn new ( master_fd : RawFd ) -> Self {
2224 Self {
@@ -67,11 +69,13 @@ impl AsyncPtyIoHandler {
6769}
6870
6971/// Handle scrollback buffer management with thread-safe async operations
72+ #[ allow( dead_code) ]
7073pub struct AsyncScrollbackHandler {
7174 buffer : Arc < RwLock < Vec < u8 > > > ,
7275 max_size : usize ,
7376}
7477
78+ #[ allow( dead_code) ]
7579impl AsyncScrollbackHandler {
7680 pub fn new ( max_size : usize ) -> Self {
7781 Self {
@@ -104,6 +108,7 @@ impl AsyncScrollbackHandler {
104108}
105109
106110/// Async task that reads from socket and writes to stdout
111+ #[ allow( dead_code) ]
107112pub async fn socket_to_stdout_task (
108113 mut socket : UnixStream ,
109114 running : Arc < AtomicBool > ,
@@ -158,6 +163,7 @@ pub async fn socket_to_stdout_task(
158163}
159164
160165/// Async task that monitors terminal size changes
166+ #[ allow( dead_code) ]
161167pub async fn resize_monitor_task (
162168 mut socket : UnixStream ,
163169 running : Arc < AtomicBool > ,
@@ -183,6 +189,7 @@ pub async fn resize_monitor_task(
183189}
184190
185191/// Helper to send buffered output to a new client (async version)
192+ #[ allow( dead_code) ]
186193pub async fn send_buffered_output_async (
187194 stream : & mut UnixStream ,
188195 output_buffer : & PtyBuffer ,
@@ -226,11 +233,13 @@ pub async fn send_buffered_output_async(
226233}
227234
228235/// Session manager using Arc<RwLock> for multi-threaded access
236+ #[ allow( dead_code) ]
229237pub struct AsyncSessionManager {
230238 sessions : Arc < RwLock < std:: collections:: HashMap < String , SessionData > > > ,
231239}
232240
233241#[ derive( Clone ) ]
242+ #[ allow( dead_code) ]
234243pub struct SessionData {
235244 pub id : String ,
236245 pub master_fd : RawFd ,
@@ -239,6 +248,7 @@ pub struct SessionData {
239248 pub created_at : std:: time:: SystemTime ,
240249}
241250
251+ #[ allow( dead_code) ]
242252impl AsyncSessionManager {
243253 pub fn new ( ) -> Self {
244254 Self {
0 commit comments