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

#318 in Windows APIs

Download history 2930/week @ 2024-07-21 2625/week @ 2024-07-28 2115/week @ 2024-08-04 3633/week @ 2024-08-11 2425/week @ 2024-08-18 3526/week @ 2024-08-25 2899/week @ 2024-09-01 2079/week @ 2024-09-08 2264/week @ 2024-09-15 3312/week @ 2024-09-22 2814/week @ 2024-09-29 1590/week @ 2024-10-06 2830/week @ 2024-10-13 2519/week @ 2024-10-20 2451/week @ 2024-10-27 2936/week @ 2024-11-03

10,805 downloads per month
Used in 431 crates (10 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–390KB