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§
- ArcRwLock Stream 
- Context
- Context structure.
- InnerContext 
- 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§
- ArcAnySend Sync 
- An Arcpointer to a type that isAny,Send, andSync.
- ArcMutexGuard TcpStream 
- ArcRwLock Write Guard TcpStream 
- ArcStream
- AsyncArcRw Lock 
- HashMapArc AnySend Sync 
- A hash map storing ArcAnySendSyncvalues, keyed byString.
- OptionArcMutex Guard TcpStream 
- OptionArcRw Lock Stream 
- OptionArcRw Lock Write Guard TcpStream 
- OptionArcTcp Stream 
- OptionSocket Addr 
- OptionSocket Host 
- OptionSocket Port 
- Request
- ResponseData 
- Binary data for HTTP response.
- ResponseResult 
- Result type for response operations.
- RwLockRead Context 
- A read guard for the InnerContext.
- RwLockRead Guard TcpStream 
- RwLockWrite Context 
- A write guard for the InnerContext.
- RwLockWrite Guard TcpStream