Function nix::mqueue::mq_setattr

source ยท
pub fn mq_setattr(mqd: &MqdT, newattr: &MqAttr) -> Result<MqAttr>
Expand description

Set the attributes of the message queue. Only O_NONBLOCK can be set, everything else will be ignored. Returns the old attributes.

It is recommend to use the mq_set_nonblock() and mq_remove_nonblock() convenience functions as they are easier to use.

Further reading