8 releases

0.1.7 Jun 30, 2020
0.1.6 Jan 3, 2018
0.1.5 Mar 15, 2017
0.1.4 Feb 25, 2017
0.1.2 Dec 22, 2016

#8 in #internally

Download history 11231/week @ 2023-12-13 11511/week @ 2023-12-20 2968/week @ 2023-12-27 6517/week @ 2024-01-03 6600/week @ 2024-01-10 7060/week @ 2024-01-17 9893/week @ 2024-01-24 6406/week @ 2024-01-31 11301/week @ 2024-02-07 7751/week @ 2024-02-14 6721/week @ 2024-02-21 10428/week @ 2024-02-28 9295/week @ 2024-03-06 9410/week @ 2024-03-13 5835/week @ 2024-03-20 16319/week @ 2024-03-27

41,788 downloads per month
Used in 432 crates (11 directly)

MIT/Apache

33KB
543 lines

mio-named-pipes

Run tests

Documentation

A library for integrating Windows Named Pipes with mio.

# Cargo.toml
[dependencies]
mio-named-pipes = "0.1"
mio = "0.6"

Usage

The primary type, NamedPipe, can be constructed with NamedPipe::new or through the IntoRawHandle type. All operations on NamedPipe are nonblocking and will return an I/O error if they'd block (with the error indicating so).

Typically you can use a NamedPipe in the same way you would a TCP socket on Windows with mio.

Note: Named pipes on Windows do not have a zero-cost abstraction when working with the mio interface (readiness, not completion). As a result, this library internally has some buffer management that hasn't been optimized yet. It's recommended you benchmark this library for your application, and feel free to contact me if anything looks awry.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in mio-named-pipes by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–385KB