[go: up one dir, main page]

IoringOp

Enum IoringOp 

Source
#[non_exhaustive]
#[repr(u8)]
pub enum IoringOp {
Show 58 variants Nop = 0, Accept = 13, AsyncCancel = 14, Close = 19, Connect = 16, EpollCtl = 29, Fadvise = 24, Fallocate = 17, FilesUpdate = 20, Fsync = 3, Linkat = 39, LinkTimeout = 15, Madvise = 25, Mkdirat = 37, Openat = 18, Openat2 = 28, PollAdd = 6, PollRemove = 7, ProvideBuffers = 31, Read = 22, Readv = 1, ReadFixed = 4, Recv = 27, Recvmsg = 10, RemoveBuffers = 32, Renameat = 35, Send = 26, Sendmsg = 9, Shutdown = 34, Splice = 30, Statx = 21, Symlinkat = 38, SyncFileRange = 8, Tee = 33, Timeout = 11, TimeoutRemove = 12, Unlinkat = 36, Write = 23, Writev = 2, WriteFixed = 5, MsgRing = 40, Fsetxattr = 41, Setxattr = 42, Fgetxattr = 43, Getxattr = 44, Socket = 45, UringCmd = 46, SendZc = 47, SendmsgZc = 48, ReadMultishot = 49, Waitid = 50, FutexWait = 51, FutexWake = 52, FutexWaitv = 53, FixedFdInstall = 54, Ftruncate = 55, Bind = 56, Listen = 57,
}
Available on crate feature io_uring only.
Expand description

IORING_OP_* constants for use with io_uring_sqe.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Nop = 0

IORING_OP_NOP

§

Accept = 13

IORING_OP_ACCEPT

§

AsyncCancel = 14

IORING_OP_ASYNC_CANCEL

§

Close = 19

IORING_OP_CLOSE

§

Connect = 16

IORING_OP_CONNECT

§

EpollCtl = 29

IORING_OP_EPOLL_CTL

§

Fadvise = 24

IORING_OP_FADVISE

§

Fallocate = 17

IORING_OP_FALLOCATE

§

FilesUpdate = 20

IORING_OP_FILES_UPDATE

§

Fsync = 3

IORING_OP_FSYNC

§

Linkat = 39

IORING_OP_LINKAT

§

LinkTimeout = 15

IORING_OP_LINK_TIMEOUT

§

Madvise = 25

IORING_OP_MADVISE

§

Mkdirat = 37

IORING_OP_MKDIRAT

§

Openat = 18

IORING_OP_OPENAT

§

Openat2 = 28

IORING_OP_OPENAT2

§

PollAdd = 6

IORING_OP_POLL_ADD

§

PollRemove = 7

IORING_OP_POLL_REMOVE

§

ProvideBuffers = 31

IORING_OP_PROVIDE_BUFFERS

§

Read = 22

IORING_OP_READ

§

Readv = 1

IORING_OP_READV

§

ReadFixed = 4

IORING_OP_READ_FIXED

§

Recv = 27

IORING_OP_RECV

§

Recvmsg = 10

IORING_OP_RECVMSG

§

RemoveBuffers = 32

IORING_OP_REMOVE_BUFFERS

§

Renameat = 35

IORING_OP_RENAMEAT

§

Send = 26

IORING_OP_SEND

§

Sendmsg = 9

IORING_OP_SENDMSG

§

Shutdown = 34

IORING_OP_SHUTDOWN

§

Splice = 30

IORING_OP_SPLICE

§

Statx = 21

IORING_OP_STATX

§

Symlinkat = 38

IORING_OP_SYMLINKAT

§

SyncFileRange = 8

IORING_OP_SYNC_FILE_RANGE

§

Tee = 33

IORING_OP_TEE

§

Timeout = 11

IORING_OP_TIMEOUT

§

TimeoutRemove = 12

IORING_OP_TIMEOUT_REMOVE

§

Unlinkat = 36

IORING_OP_UNLINKAT

§

Write = 23

IORING_OP_WRITE

§

Writev = 2

IORING_OP_WRITEV

§

WriteFixed = 5

IORING_OP_WRITE_FIXED

§

MsgRing = 40

IORING_OP_MSG_RING

§

Fsetxattr = 41

IORING_OP_FSETXATTR

§

Setxattr = 42

IORING_OP_SETXATTR

§

Fgetxattr = 43

IORING_OP_FGETXATTR

§

Getxattr = 44

IORING_OP_GETXATTR

§

Socket = 45

IORING_OP_SOCKET

§

UringCmd = 46

IORING_OP_URING_CMD

§

SendZc = 47

IORING_OP_SEND_ZC

§

SendmsgZc = 48

IORING_OP_SENDMSG_ZC

§

ReadMultishot = 49

IORING_OP_READ_MULTISHOT (since Linux 6.7)

§

Waitid = 50

IORING_OP_WAITID (since Linux 6.5)

§

FutexWait = 51

IORING_OP_FUTEX_WAIT (since Linux 6.7)

§

FutexWake = 52

IORING_OP_FUTEX_WAKE (since Linux 6.7)

§

FutexWaitv = 53

IORING_OP_FUTEX_WAITV (since Linux 6.7)

§

FixedFdInstall = 54

IORING_OP_FIXED_FD_INSTALL (since Linux 6.8)

§

Ftruncate = 55

IORING_OP_FTRUNCATE (since Linux 6.9)

§

Bind = 56

IORING_OP_BIND (since Linux 6.11)

§

Listen = 57

IORING_OP_LISTEN (since Linux 6.11)

Trait Implementations§

Source§

impl Clone for IoringOp

Source§

fn clone(&self) -> IoringOp

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IoringOp

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for IoringOp

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Hash for IoringOp

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for IoringOp

Source§

fn eq(&self, other: &IoringOp) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for IoringOp

Source§

impl Eq for IoringOp

Source§

impl StructuralPartialEq for IoringOp

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.