pub struct Queue { /* private fields */ }
Expand description
Represents an open queue descriptor to a POSIX message queue. This carries information about the queue’s limitations (i.e. maximum message size and maximum message count).
Implementations
Creates a new queue and fails if it already exists. By default the queue will be read/writable by the current user with no access for other users. Linux users can change this setting themselves by modifying the queue file in /dev/mqueue.
Opens an existing queue or creates a new queue with the OS default settings.
Delete a message queue from the system. This method will make the queue unavailable for other processes after their current queue descriptors have been closed.
Send a message to the message queue. If the queue is full this call will block until a message has been consumed.
Receive a message from the message queue. If the queue is empty this call will block until a message arrives.