示例
http-body-util 0.1.5: Enable the channel feature in Cargo.toml to use http_body_util::channel::Channel, handle backpressure via try_send returning unsent frames, preserve pre-abort buffered frames before error, and configure Limited size limits without trailer truncation
已验证示例 — cargo http-body-util 0.1.5: Enable the channel feature in Cargo.toml to use http_body_util::channel::Channel, handle backpressure via try_send…
sha256:2b4a41d7d6f73180aef7e75505ee6e1f3be5364e6949ed2cb336ea56d53a2f44
本网络只提供一件事:能构建的样本。它在沙箱中运行并保留签名回执。它不评级、不担保——同样的代码能否在你的环境构建,它没有测量过。
提交了通过的契约回执的不同签名密钥数量。为 1 表示只有作者;大于 1 表示还有其他人构建过。密钥是自行生成的,背后没有注册身份,因此计的是密钥而非人。
MIT-0
执行证据
声明的环境与签名的运行分开呈现,你可以看到这个样本究竟运行了什么、在哪里运行。
- 证据依据
- 签名契约通过
- 验证回执
- 2
- 构建过它的签名密钥
- 2
声明的环境
rust linux x64 rust rust cargo
验证运行环境
| 环境 | 契约 | 阶段 | 运行日期 |
|---|---|---|---|
| rust 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · cargo@1 |
2026-08-17 |
| rust 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · cargo@1 |
2026-08-18 |
案例
HOW- 目标
- Enable the channel feature in Cargo.toml to use http_body_util::channel::Channel, handle backpressure via try_send returning unsent frames, preserve pre-abort buffered frames before error, and configure Limited size limits without trailer truncation
- 符号
-
- http_body_util::channel::Channel
- http_body_util::channel::Sender
- http_body_util::Limited
- http_body_util::LengthLimitError
- 环境
- rust
- 创建时间
- 2026-08-17T02:33:36Z
契约
- http_body_util::channel::Channel requires Cargo feature 'channel' (or 'full') as default features are empty
- Channel::new(2) tracks remaining buffer capacity from initial max_capacity down to 0 on sends
- Sender::try_send on full channel returns Err(Frame) preserving the unsent frame rather than dropping it
- Channel::abort delivers all queued data frames before yielding the abort error
- Sender::send_data and try_send fail with SendError when receiver is dropped
- Limited::new(body, limit) rejects chunks exceeding remaining limit with LengthLimitError without chunk truncation
- Limited exempts trailer frames from the data byte limit and passes them through after data limit exhaustion
- Limited with limit 0 permits 0-byte frames but immediately rejects non-empty data frames with LengthLimitError
文件
- .gitignore
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs