2 个不稳定版本
0.2.0 | 2018年10月6日 |
---|---|
0.1.0 | 2018年10月3日 |
#562 in Unix API
每月6,537次下载
在 12 个 crate(9个直接)中使用
12KB
157 行
unix-named-pipe
unix-named-pipe
是一个库,用于简化在Unix平台上创建和使用命名管道
用法
extern crate unix_named_pipe;
...
let filename = "/var/run/application.pipe";
let mode: u32 = 0o644
// Create a new named pipe
unix_named_pipe::create(filename, mode)?;
// Open a named pipe for reading
let read_file = unix_named_pipe::open_read(filename)?;
// Open a named pipe for writing (appending)
let write_file = unix_named_pipe::open_write(filename)?;
贡献
欢迎并鼓励提交拉取请求。请通过问题跟踪器或电子邮件提问。
任何贡献都将非常感激 <3。
许可证
根据MIT许可。有关详细信息,请参阅LICENSE。
依赖关系
~230KB