Crate silent

Crate silent 

Source

Re-exports§

pub use crate::middleware::MiddleWareHandler;
pub use crate::middleware::middlewares;
pub use headers;

Modules§

extractor
萃取器模块
header
HTTP header types
middleware
prelude
protocol

Structs§

Configs
A type map of protocol extensions.
HandlerWrapper
处理器包装结构体 包含 请求类型: Option<Method> 请求方法: Handler 其中请求类型可为空,用来定义中间件 请求方法不可为空,用来定义处理器 处理器为返回值为 Into<Bytes> + From<Bytes> 的异步函数或者闭包函数
Listeners
ListenersBuilder
Method
The Request Method (VERB)
NetServer
与协议无关的通用网络服务器。
Next
The Next struct is used to chain multiple middlewares and endpoints together.
RateLimiterConfig
限流器配置(令牌桶算法)。
Request
请求体
Response
响应体
Server
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).

Enums§

Listener
SilentError
SilentError is the error type for the silent library.
SocketAddr

Traits§

Connection
ConnectionService
与协议无关的连接处理服务。
Handler
Listen
Protocol
通用协议适配抽象

Type Aliases§

AcceptFuture
接受连接的 Future。
BoxError
统一的错误类型,用于连接处理。
BoxedConnection
ConnectionFuture
连接处理的 Future 类型。
Result