pub struct Attributes {
pub max_msg_len: usize,
pub capacity: usize,
pub current_messages: usize,
pub nonblocking: bool,
/* private fields */
}Expand description
Contains information about the capacities and state of a posix message queue.
Created by PosixMq::attributes().
Fields§
§max_msg_len: usizeThe maximum size of messages that can be stored in the queue.
capacity: usizeThe maximum number of messages in the queue.
current_messages: usizeThe number of messages currently in the queue at the time the attributes were retrieved.
nonblocking: boolWhether the descriptor was set to nonblocking mode when the attributes were retrieved.
Trait Implementations§
Source§impl Clone for Attributes
impl Clone for Attributes
Source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Attributes
impl Debug for Attributes
Source§impl Default for Attributes
impl Default for Attributes
Source§fn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
Source§impl PartialEq for Attributes
impl PartialEq for Attributes
impl Copy for Attributes
impl Eq for Attributes
impl StructuralPartialEq for Attributes
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
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