We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 705100d commit 8ed0e28Copy full SHA for 8ed0e28
1 file changed
src/handle.rs
@@ -196,4 +196,17 @@ impl Handle {
196
)),
197
}
198
199
+
200
+ /// Set the audit status
201
+ ///
202
+ /// You must have properly set the mask field according to which fields
203
+ /// must be set.
204
+ pub async fn set_status(
205
+ &mut self,
206
+ status: StatusMessage,
207
+ ) -> Result<(), Error> {
208
+ let mut req = NetlinkMessage::from(AuditMessage::SetStatus(status));
209
+ req.header.flags = NLM_F_REQUEST | NLM_F_ACK;
210
+ self.acked_request(req).await
211
+ }
212
0 commit comments