flare-core 0.1.2

A high-performance, reliable long-connection communication toolkit for Rust, supporting WebSocket and QUIC protocols with features like authentication, device management, serialization negotiation, and protocol racing.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! 服务端连接管理模块
//! 
//! 提供服务端连接管理的完整功能,包括:
//! - 连接管理器 trait:定义连接管理的标准接口
//! - 默认实现:基于内存的连接管理器
//! - 连接信息:连接元数据和统计信息

pub mod manager;
pub mod negotiation;
pub mod r#trait;
pub mod device_handler;

// 重新导出常用类型
pub use manager::{ConnectionManager, ConnectionInfo};
pub use r#trait::{ConnectionManagerTrait, ConnectionInfo as TraitConnectionInfo, ConnectionStats};
pub use device_handler::{handle_device_conflict, DeviceConflictResult};