Crates.io | sysvmq |
lib.rs | sysvmq |
version | 0.1.1 |
source | src |
created_at | 2023-12-08 01:07:36.971291 |
updated_at | 2023-12-08 01:14:44.344606 |
description | A simple API for SysV IPC message queues. |
homepage | https://git.onders.org/finga/sysvmq |
repository | https://git.onders.org/finga/sysvmq |
max_upload_size | |
id | 1061425 |
size | 15,360 |
This library provides a convenient and easy usable API for SysV IPC message queues.
use sysvmq::{SysvMq, SysvMqError};
fn example() -> Result<(), SysvMqError> {
let mut mq = SysvMq::new(0)?;
let mut buf = [0u8; 11];
mq.send(b"hello queue")?;
mq.recv(&mut buf)?;
mq.delete()?;
Ok(())
}