Skip to main content

IoringRegisterOp

Enum IoringRegisterOp 

Source
#[non_exhaustive]
#[repr(u8)]
pub enum IoringRegisterOp {
Show 33 variants RegisterBuffers = 0, UnregisterBuffers = 1, RegisterFiles = 2, UnregisterFiles = 3, RegisterEventfd = 4, UnregisterEventfd = 5, RegisterFilesUpdate = 6, RegisterEventfdAsync = 7, RegisterProbe = 8, RegisterPersonality = 9, UnregisterPersonality = 10, RegisterRestrictions = 11, RegisterEnableRings = 12, RegisterBuffers2 = 15, RegisterBuffersUpdate = 16, RegisterFiles2 = 13, RegisterFilesUpdate2 = 14, RegisterIowqAff = 17, UnregisterIowqAff = 18, RegisterIowqMaxWorkers = 19, RegisterRingFds = 20, UnregisterRingFds = 21, RegisterPbufRing = 22, UnregisterPbufRing = 23, RegisterSyncCancel = 24, RegisterFileAllocRange = 25, RegisterPbufStatus = 26, RegisterNapi = 27, UnregisterNapi = 28, RegisterClock = 29, RegisterCloneBuffers = 30, RegisterSendMsgRing = 31, RegisterResizeRings = 33,
}
Available on crate feature io_uring only.
Expand description

IORING_REGISTER_* and IORING_UNREGISTER_* constants for use with io_uring_register.

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.
§

RegisterBuffers = 0

IORING_REGISTER_BUFFERS

§

UnregisterBuffers = 1

IORING_UNREGISTER_BUFFERS

§

RegisterFiles = 2

IORING_REGISTER_FILES

§

UnregisterFiles = 3

IORING_UNREGISTER_FILES

§

RegisterEventfd = 4

IORING_REGISTER_EVENTFD

§

UnregisterEventfd = 5

IORING_UNREGISTER_EVENTFD

§

RegisterFilesUpdate = 6

IORING_REGISTER_FILES_UPDATE

§

RegisterEventfdAsync = 7

IORING_REGISTER_EVENTFD_ASYNC

§

RegisterProbe = 8

IORING_REGISTER_PROBE

§

RegisterPersonality = 9

IORING_REGISTER_PERSONALITY

§

UnregisterPersonality = 10

IORING_UNREGISTER_PERSONALITY

§

RegisterRestrictions = 11

IORING_REGISTER_RESTRICTIONS

§

RegisterEnableRings = 12

IORING_REGISTER_ENABLE_RINGS

§

RegisterBuffers2 = 15

IORING_REGISTER_BUFFERS2

§

RegisterBuffersUpdate = 16

IORING_REGISTER_BUFFERS_UPDATE

§

RegisterFiles2 = 13

IORING_REGISTER_FILES2

§

RegisterFilesUpdate2 = 14

IORING_REGISTER_FILES_UPDATE2

§

RegisterIowqAff = 17

IORING_REGISTER_IOWQ_AFF

§

UnregisterIowqAff = 18

IORING_UNREGISTER_IOWQ_AFF

§

RegisterIowqMaxWorkers = 19

IORING_REGISTER_IOWQ_MAX_WORKERS

§

RegisterRingFds = 20

IORING_REGISTER_RING_FDS

§

UnregisterRingFds = 21

IORING_UNREGISTER_RING_FDS

§

RegisterPbufRing = 22

IORING_REGISTER_PBUF_RING

§

UnregisterPbufRing = 23

IORING_UNREGISTER_PBUF_RING

§

RegisterSyncCancel = 24

IORING_REGISTER_SYNC_CANCEL

§

RegisterFileAllocRange = 25

IORING_REGISTER_FILE_ALLOC_RANGE

§

RegisterPbufStatus = 26

IORING_REGISTER_PBUF_STATUS (since Linux 6.8)

§

RegisterNapi = 27

IORING_REGISTER_NAPI (since Linux 6.9)

§

UnregisterNapi = 28

IORING_UNREGISTER_NAPI (since Linux 6.9)

§

RegisterClock = 29

IORING_REGISTER_CLOCK (since Linux 6.12)

§

RegisterCloneBuffers = 30

IORING_REGISTER_CLONE_BUFFERS (since Linux 6.12)

§

RegisterSendMsgRing = 31

IORING_REGISTER_SEND_MSG_RING (since Linux 6.12)

§

RegisterResizeRings = 33

IORING_REGISTER_RESIZE_RINGS(since Linux 6.13)

Trait Implementations§

Source§

impl Clone for IoringRegisterOp

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for IoringRegisterOp

Source§

impl Debug for IoringRegisterOp

Source§

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

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

impl Eq for IoringRegisterOp

Source§

impl Hash for IoringRegisterOp

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 IoringRegisterOp

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for IoringRegisterOp

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.