No description
Find a file
Vincent Ambo 1b79584088 fix(lib): Fix incorrect error message for name validation
The message should have been the exact opposite, duh!
2017-10-16 17:42:03 +02:00
src fix(lib): Fix incorrect error message for name validation 2017-10-16 17:42:03 +02:00
.gitignore chore: Add project scaffolding 2017-10-15 22:06:22 +02:00
.travis.yml feat(build): Add automated Travis builds 2017-10-16 02:24:33 +02:00
Cargo.toml docs(Cargo): Add more info to Cargo manifest 2017-10-16 02:29:50 +02:00
CODE_OF_CONDUCT.md chore: Add project scaffolding 2017-10-15 22:06:22 +02:00
LICENSE chore: Add project scaffolding 2017-10-15 22:06:22 +02:00
README.md docs(README): Add Travis-CI & crates.io badges 2017-10-16 13:59:27 +02:00

posix_mq

Build Status crates.io

This is a simple, relatively high-level library for the POSIX message queue API. It wraps the lower-level API in a simpler interface with more robust error handling.

Usage example:

// Values that need to undergo validation are wrapped in safe types:
let name = Name::new("/test-queue").unwrap();

// Queue creation with system defaults is simple:
let queue = Queue::open_or_create(name).expect("Opening queue failed");

// Sending a message:
let message = Message {
  data: "test-message".as_bytes().to_vec(),
  priority: 0,
};
queue.send(&message).expect("message sending failed");

// ... and receiving it!
let result = queue.receive().expect("message receiving failed");