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
9
10
use crate::*;

/// A type alias for a read guard of `ArcRwLock<TcpStream>`.
pub type ArcRwLockStreamReadGuard<'a> = ArcRwLockReadGuard<'a, TcpStream>;

/// A type alias for a write guard of `ArcRwLock<TcpStream>`.
pub type ArcRwLockStreamWriteGuard<'a> = ArcRwLockWriteGuard<'a, TcpStream>;

/// A type alias for an optional `ArcRwLockStream`.
pub type OptionArcRwLockStream = Option<ArcRwLockStream>;