diff --git a/src/squeue.rs b/src/squeue.rs index 29b78f3..5ce7f48 100644 --- a/src/squeue.rs +++ b/src/squeue.rs @@ -328,6 +328,13 @@ impl Entry { self } + /// Clear the submission event's [flags](Flags). + #[inline] + pub fn clear_flags(mut self) -> Entry { + self.0.flags = 0; + self + } + /// Set the user data. This is an application-supplied value that will be passed straight /// through into the [completion queue entry](crate::cqueue::Entry::user_data). #[inline] @@ -382,6 +389,13 @@ impl Entry128 { self } + /// Clear the submission event's [flags](Flags). + #[inline] + pub fn clear_flags(mut self) -> Entry128 { + self.0 .0.flags = 0; + self + } + /// Set the user data. This is an application-supplied value that will be passed straight /// through into the [completion queue entry](crate::cqueue::Entry::user_data). #[inline]