tokio-splice2 0.3.0

splice(2) in tokio
Documentation
tokio-splice2-0.3.0 has been yanked.

tokio-splice2

crates.io docs.rs

Implemented splice(2) based bidirectional data transmission in tokio-rs. Just like tokio::io::copy_bidirectional.

Examples

See examples.

Changelog

  • 0.3.0:

    • MSRV is now 1.70.0.
    • Replace libc with rustix.
    • Add tracing logger support.
    • Add unidirectional copy.
    • Returns TrafficResult instead of io::Result<T> to have traffic transferred returned when error occurs.
    • (Experimental) Add tokio::fs::File support to splice from (like sendfile) / to (not fully tested).
    • (Experimental) Basic rate limitation support.
  • 0.2.1:

Benchmark

See BENCHMARK.

MSRV

1.70.0 (To run the examples, please use the latest stable Rust version)

LICENSE

MIT OR Apache-2.0

Credits

tokio-splice