pub struct MqAttr { /* private fields */ }Expand description
Export the MqAttr struct from the nix crate.
A message-queue attribute, optionally used with mq_setattr and
mq_getattr and optionally mq_open,
Implementations§
Source§impl MqAttr
impl MqAttr
Sourcepub fn new(
mq_flags: i64,
mq_maxmsg: i64,
mq_msgsize: i64,
mq_curmsgs: i64,
) -> MqAttr
pub fn new( mq_flags: i64, mq_maxmsg: i64, mq_msgsize: i64, mq_curmsgs: i64, ) -> MqAttr
Create a new message queue attribute
§Arguments
mq_flags: Either0orO_NONBLOCK.mq_maxmsg: Maximum number of messages on the queue.mq_msgsize: Maximum message size in bytes.mq_curmsgs: Number of messages currently in the queue.
Trait Implementations§
impl Copy for MqAttr
impl Eq for MqAttr
impl StructuralPartialEq for MqAttr
Auto Trait Implementations§
impl Freeze for MqAttr
impl RefUnwindSafe for MqAttr
impl Send for MqAttr
impl Sync for MqAttr
impl Unpin for MqAttr
impl UnwindSafe for MqAttr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more