Skip to main content

ydp_core/
lib.rs

1//! 纯异步 CDP 兼容协议通信核心;不管理浏览器语义或重试。
2#![forbid(unsafe_code)]
3/// 生成绑定共享的版本化序列化基础设施。
4pub mod binding_support;
5mod error;
6mod raw;
7mod runtime;
8mod transport;
9mod types;
10mod wire;
11/// 有限协议数值。
12pub use binding_support::FiniteF64;
13/// 结构化通信错误与请求上下文。
14pub use error::{Error, ErrorKind, RequestContext, Result};
15/// 共享原始 JSON 字节视图。
16pub use raw::RawJson;
17/// 异步连接、Session、请求与订阅。
18pub use runtime::*;
19/// 完整文本消息传输契约。
20pub use transport::{MessageReader, MessageWriter, Transport, TransportError};
21/// 协议身份、选项和静态 marker 契约。
22pub use types::*;
23#[cfg(feature = "websocket")]
24mod websocket;
25/// WebSocket 连接与 TLS 信任选项。
26#[cfg(feature = "websocket")]
27pub use websocket::{ConnectOptions, TlsOptions};