File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
21
21
(#[ 1537] ( https://github.com/nix-rust/nix/pull/1537 ) )
22
22
- Added the ` SO_TIMESTAMPING ` support
23
23
(#[ 1547] ( https://github.com/nix-rust/nix/pull/1547 ) )
24
+ - Added getter methods to ` MqAttr ` struct
25
+ (#[ 1619] ( https://github.com/nix-rust/nix/pull/1619 ) )
24
26
25
27
### Changed
26
28
### Fixed
Original file line number Diff line number Diff line change @@ -64,6 +64,21 @@ impl MqAttr {
64
64
pub const fn flags ( & self ) -> mq_attr_member_t {
65
65
self . mq_attr . mq_flags
66
66
}
67
+
68
+ /// The max number of messages that can be held by the queue
69
+ pub const fn maxmsg ( & self ) -> mq_attr_member_t {
70
+ self . mq_attr . mq_maxmsg
71
+ }
72
+
73
+ /// The maximum size of each message (in bytes)
74
+ pub const fn msgsize ( & self ) -> mq_attr_member_t {
75
+ self . mq_attr . mq_msgsize
76
+ }
77
+
78
+ /// The number of messages currently held in the queue
79
+ pub const fn curmsgs ( & self ) -> mq_attr_member_t {
80
+ self . mq_attr . mq_curmsgs
81
+ }
67
82
}
68
83
69
84
You can’t perform that action at this time.
0 commit comments