Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/squeue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down
Loading