Skip to content

Commit

Permalink
impl ord,eq for bitflags
Browse files Browse the repository at this point in the history
  • Loading branch information
quininer committed Oct 17, 2024
1 parent a2fed13 commit 02d77d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Test API
run: cargo test --target ${{ matrix.target }}
- name: Test
run: cargo run --package io-uring-test --features io-uring-test/ci --target ${{ matrix.target }}

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "io-uring"
version = "0.7.0"
version = "0.7.1"
authors = ["quininer <quininer@live.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
6 changes: 3 additions & 3 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ bitflags! {
/// The default behavior when the timeout expires is to return a CQE with -libc::ETIME in
/// the res field. To change this behavior to have zero returned, include
/// [`types::TimeoutFlags::ETIME_SUCCESS`].
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct TimeoutFlags: u32 {
const ABS = sys::IORING_TIMEOUT_ABS;

Expand All @@ -104,7 +104,7 @@ bitflags! {

bitflags! {
/// Options for [`Fsync`](super::Fsync).
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct FsyncFlags: u32 {
const DATASYNC = sys::IORING_FSYNC_DATASYNC;
}
Expand All @@ -113,7 +113,7 @@ bitflags! {
bitflags! {
/// Options for [`AsyncCancel`](super::AsyncCancel) and
/// [`Submitter::register_sync_cancel`](super::Submitter::register_sync_cancel).
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub(crate) struct AsyncCancelFlags: u32 {
/// Cancel all requests that match the given criteria, rather
/// than just canceling the first one found.
Expand Down

0 comments on commit 02d77d2

Please sign in to comment.