Crate rat_engine

Crate rat_engine 

Source
Expand description

RAT Engine - 高性能 Web 框架

RAT Engine 是一个基于 Rust 的高性能 Web 框架,提供:

  • 高性能工作窃取调度器
  • 零拷贝网络 I/O
  • 内存池管理
  • 原子性能监控
  • 内容压缩支持
  • Python 集成支持
  • Flask 风格的 API

Re-exports§

pub use server::ServerConfig;
pub use server::Router;
pub use server::WorkerPool;
pub use server::run_server_with_router;Deprecated
pub use engine::RatEngine;
pub use server::grpc_types::GrpcStreamMessage;Deprecated
pub use utils::sys_info::SystemInfo;
pub use utils::logger::Logger;
pub use utils::logger::LogLevel;
pub use utils::logger::LogConfig;
pub use error::RatError;
pub use error::RatResult;
pub use error::CacheError;
pub use server::performance::optimize_for_throughput;
pub use engine::smart_transfer::SmartTransferManager;

Modules§

cache
缓存模块
common
公共模块
compression
压缩模块
engine
RAT Engine 高性能核心模块
error
RAT Engine 错误处理模块
server
RAT Engine 服务器模块
utils

Macros§

debug
error
info
require_features
便捷宏:检查特性并在缺失时退出
trace
warn

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
Empty
A body that is always empty.
Error
Represents errors that can occur handling HTTP streams.
Frame
A frame of any kind related to an HTTP stream (body).
Full
A body that consists of a single chunk.
HeaderMap
A set of HTTP headers
Incoming
A stream of Bytes, used when receiving bodies from the network.
Method
The Request Method (VERB)
Request
Represents an HTTP request.
Response
Represents an HTTP response
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
Uri
The URI component of a request.
Version
Represents a version of the HTTP spec.
VersionInfo
版本信息结构

Constants§

DEFAULT_PORT
DEFAULT_TIMEOUT
MAX_WORKERS
MIN_WORKERS
VERSION
VERSION_INFO
构建时生成的版本信息

Traits§

BodyExt
An extension trait for http_body::Body adding various combinators and adapters

Functions§

version_info
获取版本信息