http_type/stream/struct.rs
1use crate::*;
2
3/// Thread-safe TCP stream wrapper.
4///
5/// Provides shared access to a TcpStream using Arc and RwLock.
6///
7/// # Fields
8///
9/// - `Arc<RwLock<TcpStream>>` - The protected TCP stream.
10#[derive(Clone, Debug, Getter)]
11pub struct ArcRwLockStream(#[get(pub(super))] pub(super) ArcRwLock<TcpStream>);