PT_ENUMFLAGS16_io_uring_register_opcodes

Enum PT_ENUMFLAGS16_io_uring_register_opcodes 

Source
#[non_exhaustive]
#[repr(u16)]
pub enum PT_ENUMFLAGS16_io_uring_register_opcodes {
Show 23 variants IORING_REGISTER_BUFFERS, IORING_UNREGISTER_BUFFERS, IORING_REGISTER_FILES, IORING_UNREGISTER_FILES, IORING_REGISTER_EVENTFD, IORING_UNREGISTER_EVENTFD, IORING_REGISTER_FILES_UPDATE, IORING_REGISTER_EVENTFD_ASYNC, IORING_REGISTER_PROBE, IORING_REGISTER_PERSONALITY, IORING_UNREGISTER_PERSONALITY, IORING_REGISTER_RESTRICTIONS, IORING_REGISTER_ENABLE_RINGS, IORING_REGISTER_FILES2, IORING_REGISTER_FILES_UPDATE2, IORING_REGISTER_BUFFERS2, IORING_REGISTER_BUFFERS_UPDATE, IORING_REGISTER_IOWQ_AFF, IORING_UNREGISTER_IOWQ_AFF, IORING_REGISTER_IOWQ_MAX_WORKERS, IORING_REGISTER_RING_FDS, IORING_UNREGISTER_RING_FDS, Unknown(usize),
}

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

IORING_REGISTER_BUFFERS

§

IORING_UNREGISTER_BUFFERS

§

IORING_REGISTER_FILES

§

IORING_UNREGISTER_FILES

§

IORING_REGISTER_EVENTFD

§

IORING_UNREGISTER_EVENTFD

§

IORING_REGISTER_FILES_UPDATE

§

IORING_REGISTER_EVENTFD_ASYNC

§

IORING_REGISTER_PROBE

§

IORING_REGISTER_PERSONALITY

§

IORING_UNREGISTER_PERSONALITY

§

IORING_REGISTER_RESTRICTIONS

§

IORING_REGISTER_ENABLE_RINGS

§

IORING_REGISTER_FILES2

§

IORING_REGISTER_FILES_UPDATE2

§

IORING_REGISTER_BUFFERS2

§

IORING_REGISTER_BUFFERS_UPDATE

§

IORING_REGISTER_IOWQ_AFF

§

IORING_UNREGISTER_IOWQ_AFF

§

IORING_REGISTER_IOWQ_MAX_WORKERS

§

IORING_REGISTER_RING_FDS

§

IORING_UNREGISTER_RING_FDS

§

Unknown(usize)

Implementations§

Trait Implementations§

Source§

impl Clone for PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

fn clone(&self) -> PT_ENUMFLAGS16_io_uring_register_opcodes

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 PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

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

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

impl From<PT_ENUMFLAGS16_io_uring_register_opcodes> for u16

Source§

fn from(val: PT_ENUMFLAGS16_io_uring_register_opcodes) -> u16

Converts to this type from the input type.
Source§

impl From<u16> for PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

fn from(val: u16) -> Self

Converts to this type from the input type.
Source§

impl FromBytes<'_> for PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

fn from_bytes(buf: &mut &[u8]) -> Result<Self, FromBytesError>
where Self: Sized,

Read the binary representation of a field and return the parsed representation Read more
Source§

fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> Result<Self, FromBytesError>

Read the binary representation of a field from a buffer that may or may not exist Read more
Source§

impl Hash for PT_ENUMFLAGS16_io_uring_register_opcodes

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 LowerHex for PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

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

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

impl Ord for PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

fn cmp(&self, other: &PT_ENUMFLAGS16_io_uring_register_opcodes) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

fn eq(&self, other: &PT_ENUMFLAGS16_io_uring_register_opcodes) -> 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 PartialOrd for PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

fn partial_cmp( &self, other: &PT_ENUMFLAGS16_io_uring_register_opcodes, ) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl ToBytes for PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

fn binary_size(&self) -> usize

Return the number of bytes needed to store the field
Source§

fn write<W: Write>(&self, writer: W) -> Result<()>

Write the binary representation to writer
Source§

fn default_repr() -> impl ToBytes

Return the default representation for the field type Read more
Source§

impl Copy for PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

impl Eq for PT_ENUMFLAGS16_io_uring_register_opcodes

Source§

impl StructuralPartialEq for PT_ENUMFLAGS16_io_uring_register_opcodes

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.