Expand description
tcplane
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.
Re-exports§
pub use tokio;
Structs§
- ArcRw
Lock Stream - Context
- Context structure.
- Inner
Context - Internal context structure.
- Response
- Server
- Server structure.
Enums§
Constants§
- COLON_
SPACE - Colon space separator string.
- COLON_
SPACE_ SYMBOL - Colon space symbol string.
- DEFAULT_
BUFFER_ SIZE - Default buffer size for requests.
- DEFAULT_
HOST - Default host address.
- DEFAULT_
INNER_ LOG - Default inner log setting.
- DEFAULT_
INNER_ PRINT - Default inner print setting.
- DEFAULT_
LISTEN_ PORT - Default listen port number.
- SPLIT_
REQUEST - Request split marker string.
- SPLIT_
REQUEST_ BYTES - Request split marker bytes.
Functions§
Type Aliases§
- ArcAny
Send Sync - An
Arc
pointer to a type that isAny
,Send
, andSync
. - ArcMutex
Guard TcpStream - ArcRw
Lock Write Guard TcpStream - ArcStream
- Async
ArcRw Lock - Hash
MapArc AnySend Sync - A hash map storing
ArcAnySendSync
values, keyed byString
. - Option
ArcMutex Guard TcpStream - Option
ArcRw Lock Stream - Option
ArcRw Lock Write Guard TcpStream - Option
ArcTcp Stream - Option
Socket Addr - Option
Socket Host - Option
Socket Port - Request
- Response
Data - Binary data for HTTP response.
- Response
Result - Result type for response operations.
- RwLock
Read Context - A read guard for the
InnerContext
. - RwLock
Read Guard TcpStream - RwLock
Write Context - A write guard for the
InnerContext
. - RwLock
Write Guard TcpStream