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
//! 客户端构建器模块
//! 
//! 提供两种模式来创建和配置客户端:
//! 1. 观察者模式:使用实现了 ConnectionObserver trait 的观察者
//! 2. 简单模式:使用闭包定义消息处理逻辑

pub mod observer;
pub mod simple;

// 重新导出观察者模式
pub use observer::{ObserverClientBuilder, ObserverClient};

// 重新导出简单模式
pub use simple::{ClientBuilder, SimpleClient};