finga
e96ba1dca1
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add a homepage URL and a the readme to sysvmq's Cargo.toml. |
||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
CHANGELOG.md | ||
README.md |
Sysvmq
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(())
}