We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f76c719 commit e39e605Copy full SHA for e39e605
src/handle.rs
@@ -157,4 +157,14 @@ impl Handle {
157
)),
158
}
159
160
+
161
+ /// Set the audit status
162
+ ///
163
+ /// You must have properly set the mask field according to which fields
164
+ /// must be set.
165
+ pub async fn set_status(&mut self, status: StatusMessage) -> Result<(), Error> {
166
+ let mut req = NetlinkMessage::from(AuditMessage::SetStatus(status));
167
+ req.header.flags = NLM_F_REQUEST | NLM_F_ACK;
168
+ self.acked_request(req).await
169
+ }
170
0 commit comments