#[repr(C)]pub struct MqAttr { /* private fields */ }
Implementations§
source§impl MqAttr
impl MqAttr
pub fn new(
mq_flags: mq_attr_member_t,
mq_maxmsg: mq_attr_member_t,
mq_msgsize: mq_attr_member_t,
mq_curmsgs: mq_attr_member_t
) -> MqAttr
pub const fn flags(&self) -> mq_attr_member_t
sourcepub const fn maxmsg(&self) -> mq_attr_member_t
pub const fn maxmsg(&self) -> mq_attr_member_t
The max number of messages that can be held by the queue
sourcepub const fn msgsize(&self) -> mq_attr_member_t
pub const fn msgsize(&self) -> mq_attr_member_t
The maximum size of each message (in bytes)
sourcepub const fn curmsgs(&self) -> mq_attr_member_t
pub const fn curmsgs(&self) -> mq_attr_member_t
The number of messages currently held in the queue