Method lrs::msg_queue::MsgQueue::open

Opens or creates a message queue.

Syntax

impl MsgQueue {
    fn open<P>(path: P, flags: FileFlags, mode: Mode, attr: Option<MqAttr>) -> Result<MsgQueue, Errno>
        where P: ToCString,
}

Arguments

NameDescription
path

The name of the message queue.

flags

Flags to be used when opening the message queue.

mode

The mode of a newly created message queue.

attr

The attributes of a newly created message queue.

Remarks

The path should not contain any '/'. The mode and attr arguments only matter if the flags argument contains the FILE_CREATE flag. See the manual page for more details.

When the queue is no longer needed, it should be deleted with remove.

See also