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.

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.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.