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

#108 in Windows APIs

Download history 24781/week @ 2020-12-25 38926/week @ 2021-01-01 47455/week @ 2021-01-08 42241/week @ 2021-01-15 40940/week @ 2021-01-22 38562/week @ 2021-01-29 42993/week @ 2021-02-05 39157/week @ 2021-02-12 40674/week @ 2021-02-19 40639/week @ 2021-02-26 36683/week @ 2021-03-05 37113/week @ 2021-03-12 33252/week @ 2021-03-19 32699/week @ 2021-03-26 28548/week @ 2021-04-02 26519/week @ 2021-04-09

169,119 downloads per month
Used in 497 crates (13 directly)

MIT/Apache

32KB
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

~200KB