tcplane 8.1.0

tcplane is a lightweight and high-performance Rust TCP server library designed to simplify network service development. It supports TCP communication, data stream management, and connection handling, focusing on providing efficient low-level network connections and data transmission capabilities, making it ideal for building modern network services.
Documentation
1
2
3
4
5
6
7
8
use crate::*;

/// A thread-safe wrapper around `TcpStream` using `Arc<RwLock<TcpStream>>`.
///
/// This structure provides safe concurrent access to a TCP stream,
/// allowing multiple tasks to read from and write to the stream.
#[derive(Clone, Debug)]
pub struct ArcRwLockStream(pub(super) ArcRwLock<TcpStream>);