Enum rustix::io_uring::IoringRestrictionOp
source · #[non_exhaustive]#[repr(u16)]pub enum IoringRestrictionOp {
RegisterOp = 0,
SqeFlagsAllowed = 2,
SqeFlagsRequired = 3,
SqeOp = 1,
}
Available on crate feature
io_uring
only.Expand description
IORING_RESTRICTION_*
constants for use with io_uring_restriction
.
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.
RegisterOp = 0
IORING_RESTRICTION_REGISTER_OP
SqeFlagsAllowed = 2
IORING_RESTRICTION_SQE_FLAGS_ALLOWED
SqeFlagsRequired = 3
IORING_RESTRICTION_SQE_FLAGS_REQUIRED
SqeOp = 1
IORING_RESTRICTION_SQE_OP
Trait Implementations§
source§impl Clone for IoringRestrictionOp
impl Clone for IoringRestrictionOp
source§fn clone(&self) -> IoringRestrictionOp
fn clone(&self) -> IoringRestrictionOp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IoringRestrictionOp
impl Debug for IoringRestrictionOp
source§impl Default for IoringRestrictionOp
impl Default for IoringRestrictionOp
source§impl Hash for IoringRestrictionOp
impl Hash for IoringRestrictionOp
source§impl PartialEq for IoringRestrictionOp
impl PartialEq for IoringRestrictionOp
source§fn eq(&self, other: &IoringRestrictionOp) -> bool
fn eq(&self, other: &IoringRestrictionOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IoringRestrictionOp
impl Eq for IoringRestrictionOp
impl StructuralPartialEq for IoringRestrictionOp
Auto Trait Implementations§
impl Freeze for IoringRestrictionOp
impl RefUnwindSafe for IoringRestrictionOp
impl Send for IoringRestrictionOp
impl Sync for IoringRestrictionOp
impl Unpin for IoringRestrictionOp
impl UnwindSafe for IoringRestrictionOp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more